Skip to content

Instantly share code, notes, and snippets.

@maepon
maepon / query_plugin_authoring_ja.md
Created February 11, 2013 12:38
プラグイン作成

プラグイン/作成

jQueryを使うことが快適になってきたら、プラグインの作り方を知りたくなるでしょう。それは正解です!プラグインとメソッドでjQueryを利用することは、非常に協力で、さらに、プラグインの中に最も有効な機能を抽象化することで、開発にかける時間を大幅に節約出来ます。この記事は、プラグインを書き始める際の基本的な概要とベストプラクティス、さらに気をつける必要のある一般的な落とし穴についての記事です。

目次

  1. さあはじめよう
  2. コンテキスト

sublime-text2を入れて初めにやったこと

特徴

  • マルチプラットフォーム
  • 最初から良い感じに使える
  • 設定ファイルがJSON
  • 拡張がPythonで書ける
  • プロプライエタリ

インストール方法

@zaki
zaki / bootstrap.sh
Created January 3, 2013 13:11
Personalized workstation setup based on pivotal workstation
#!/bin/bash
# This shell script was created at solowizard.com
#
# http://github.com/tommyh/solo_wizard
# (c) 2012, Tom Hallett
# This script may be freely distributed under the MIT license.
pushd `pwd`
if rvm --version 2>/dev/null; then
gem install soloist
@teppeis
teppeis / tenkaichi-git.md
Last active April 29, 2023 14:58
天下一gitconfig大会

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisの資料です。

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
@adarapata
adarapata / hoge.rb
Created July 24, 2012 02:37 — forked from hiboma/hoge.rb
Quiz - Array methods
# -*- encoding: utf-8 -*-
describe Array do
let(:e) { [1,2,3,4,5] }
it "先頭の要素(1)を返すメソッド" do
e[0].should == 1
e.at(0).should == 1
e.first.should == 1
@hiboma
hiboma / hoge.rb
Created July 24, 2012 01:28
Quiz - Array methods
# -*- encoding: utf-8 -*-
describe Array do
let(:e) { [1,2,3,4,5] }
it "先頭の要素(1)を返すメソッド" do
e[0].should == 1
e.at(0).should == 1
e.first.should == 1
@kurotaky
kurotaky / gist:3166949
Created July 23, 2012 23:40
ArrayMethodQuiz
# 全部の問題で e = [1,2,3,4,5] を対象に回答してください
e = [1,2,3,4,5]
e[0] # 1
# 末尾の要素(5)を返すメソッド
e[4] # 5
e.slice(4)
e.last
e.at(4)
# -*- coding: utf-8 -*-
describe Array do
let(:array) { [1,2,3,4,5] }
subject &:array
it "先頭の要素(1)を返すこと" do
subject.first.should == 1
subject[0].should == 1
end
@mytharcher
mytharcher / compressor.rb
Last active May 10, 2022 01:56
A jekyll plugin for compressing HTML, JavaScript files when rendering.
#
# File compressor plugin for jekyll
# =================================
#
# By [mytharcher](https://github.com/mytharcher)
# 2012-05-20
#
# Updated by [nicoespeon](https://github.com/nicoespeon)
# 2013-04-12
#
#!perl
use 5.14.2;
use WWW::Mechanize;
use Getopt::Long;
use Term::Prompt;
use URI;
my $username;
my $baseurl;