Skip to content

Instantly share code, notes, and snippets.

View ryosuzuki's full-sized avatar

Ryo Suzuki ryosuzuki

View GitHub Profile
@ryosuzuki
ryosuzuki / .emacs
Last active October 11, 2015 16:07
;;(set-face-foreground 'font-lock-string-face "#75715E")
(set-face-foreground 'font-lock-comment-face "black")
;; Load Files
(add-to-list 'load-path "~/.emacs.d/lisp")
;; Line Number
(column-number-mode t)
(line-number-mode t)
export LANG="ja_JP.UTF-8"
# source ~/perl5/perlbrew/etc/bashrc
HISTFILE=$HOME/.zsh-history
HISTSIZE=100000
SAVEHIST=100000
# エイリアスの設定
alias ls='ls -GF'
alias ll='ls -l'
button {
color: red;
}
p {
font-size: 1.2em;
color: red;
}
.highlight {
.c{color:#999988;font-style:italic}
.err{color:#a61717;background-color:#e3d2d2}
.k{font-weight:bold}
.o{font-weight:bold}
.cm{color:#999988;font-style:italic}
.cp{color:#999999;font-weight:bold}
.c1{color:#999988;font-style:italic}
.cs{color:#999999;font-weight:bold;font-style:italic}
.gd{color:#000000;background-color:#ffdddd}
/* Hello World program */
#include<stdio.h>
main()
{
printf("Hello World");
return 0;
}

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import os
import urllib2
from BeautifulSoup import BeautifulSoup
url = raw_input('Slideshare URL : ')
html = urllib2.urlopen(url).read()
> git ls-tree HEAD
> git cat-file blob :sha
> git diff --name-only
> git rev-parse --show-toplevel
@ryosuzuki
ryosuzuki / rbenv.sh
Last active December 18, 2015 13:39
> brew update
> ruby-build --definition
> brew install rbenv
> brew install ruby-build
> brew install rbenv-vars
> brew install ctags
> brew install openssl
> brew upgrade readline
> brew install node
> npm install -g express
> express node-app
> cd node-app && npm install
> node app.js