> (concat "hello" " world") "hello world" > (concat "hello" " world" " elisp ") "hello world elisp " > (apply #'concat '("hello" " world " " elisp ")) "hello world elisp "
これならjQueryじゃなくてもいいんじゃ 無いか、っていう記事です。短くて使い やすいスニペットなんですが、まぁ用途 は人それぞれだと思うので適当に流して 下さい。自分が使いやすいようにまとめ たいだけです。 そのコードおかしいわーみたいなのあったらすいません。まぁその程度の記事です。というわけでいろいろとツッコミどころ満載かもですが、あんまり気にしないで下さい。じゃあ記事書くなよって話ですけどw デモの見方 jsfiddleというサービスを好んでよく使うのですが、あまり見慣れないかもなので一応デモの見方を。上図の○で囲った部分、Resultを押せばデモ画面に、再生ボタンでリロードします。 簡単なコードなので実践で使うにはもう少し工夫が必要です。また、jQueryの勉強にもなるかもしれません。jsfiddleはフォークできるので宜しければ改善や動作の勉強等にご利用下さい。 こういうスニペ
id:dann さんの記事 「snipMateのsnippetが書きやすい件」で snipMate.vim が紹介されてて試してみた。 snipettsEmu.vim は snippets の追加がめんどくさかったってのもあるし 入力がタイポしてたりすると編集後に次の場所に移動できなかったりとか (1)入力後 => (2)に移動といったことをしようとすると html_snippets.vim を書き直す必要があった。 snipMate は sunppets の追加が簡単そうだったので乗り換えてみた。 インストール snipMate.vim をダウンロードしてきて .vim ディレクトリ以下で解凍すれば終了。 使い方は snipettsEmu と同じです。 snippetsの構造 $ tree html snippets |-- html.snippet <- filetype $ tree
TextSnippets 2827 users tagging and storing useful source code snippets Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!) What next? 1. Bookmark us with del.icio.us or Digg Us! 2. Subscribe to this site's RSS feed 3. Browse the site. 4. Post
The purpose of this archive is to let you share your code snippets, scripts, and functions with the Open Source Software Community.You can create a "new snippet", then post additional versions of that snippet quickly and easily.Once you have snippets posted, you can then create a "Package" of snippets. That package can contain multiple, specific versions of other snippets. Browse Snippets You can
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く