Tumblr 貼付け用のGist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) testWithCode:(id)code { | |
NSLog(@"Hello, Gist!"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>IDECodeSnippetCompletionPrefix</key> | |
<string>describe</string> | |
<key>IDECodeSnippetCompletionScopes</key> | |
<array> | |
<string>TopLevel</string> | |
</array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.* | |
!.gitignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char *argv[]){ | |
char chars[] = "TeX"; | |
chars[0]--; | |
chars[1] += 'A' - 'a'; | |
printf("%s",chars); | |
return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- title = "ハイカラRails勉強会" | |
!!! 5 | |
%html{:lang => "ja"} | |
%head | |
%meta{:charset => "UTF-8"} | |
%title= title | |
%base{ :href => "file:///Users/shintaro/Documents/LearningGit/gist/" }/ | |
%link{ :rel => "stylesheet", | |
:href => "css/base.css" }/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# coding:utf-8 | |
def fizz_buzz(i) | |
str = [] | |
str << "fizz" if (i/3 - (i-1)/3) == 1 | |
str << "buzz" if (i/5 - (i-1)/5) == 1 | |
str << i.to_s if str.empty? | |
str.join(" ") | |
end |
OlderNewer