Skip to content

Instantly share code, notes, and snippets.

@dictav
dictav / Hello_Gist.m
Created October 11, 2010 06:22
Gists for Blog
-(void) testWithCode:(id)code {
NSLog(@"Hello, Gist!");
}
@dictav
dictav / test.codesnippet
Created March 6, 2012 07:08
Xcode snippets
<?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>
@dictav
dictav / hack.sh
Created March 31, 2012 21:01 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#
@dictav
dictav / .gitignore
Created July 5, 2012 13:17
Niigata.scm Documentation
.*
!.gitignore
@dictav
dictav / tex.c
Created July 31, 2012 08:13 — forked from Shinpeim/tex.c
理系男子に朗報
#include <stdio.h>
int main(int argc, char *argv[]){
char chars[] = "TeX";
chars[0]--;
chars[1] += 'A' - 'a';
printf("%s",chars);
return 0;
@dictav
dictav / introduction.haml
Created August 3, 2012 06:18
ハイカラRails勉強会
- 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" }/
@dictav
dictav / fizz_buzz.rb
Created August 10, 2012 01:23
Fizz Buzz
#! /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
@dictav
dictav / 0_Tumblr.md
Last active October 11, 2015 15:08
Tumblr 貼付け用

Tumblr 貼付け用のGist

@dictav
dictav / gist:3927072
Created October 21, 2012 14:06
ギー潟ドキュメント

寒くなってきてお風呂に入りたいという人がでてきました

お風呂に入るためには

  1. 湯をためる
  2. 24h風呂を導入する

現状ではシャワーから熱いお湯を出して浴槽に溜めることで入ることができます。 また、24h風呂を導入するという案もあります。この場合の費用は20万円ほどかかるとみられます。

@dictav
dictav / gist:3984505
Created October 31, 2012 02:44
Heroku