Skip to content

Instantly share code, notes, and snippets.

View takahiro47's full-sized avatar

Takahiro Tsuchiya takahiro47

  • CPSF, Tokuda Lab, Environment and Information Studies, Keio University SFC.
  • Tokyo, Japan
View GitHub Profile
#-------------------------------------
# 基本設定
#-------------------------------------
set-option -g status on
set-option -g status-interval 2
set-option -g status-justify "left"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)"
## zplug
##----------------------------------##
export ZPLUG_HOME=/usr/local/opt/zplug
source $ZPLUG_HOME/init.zsh
zplug 'zplug/zplug', hook-build:'zplug --self-manage'
# enhancd config
export ENHANCD_COMMAND=ed
anonymous
anonymous / sublime_text3_crack.md
Created June 7, 2015 04:58
Sublime Text 3092 3083 latest crack Win32 Win64 Linux64 Linux32 OSX Mac MacOS

cat

For pupil: all binary can be downloaded http://pan.baidu.com/s/1hqH2Pko

After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.

For programmer:

VERSION PLATFORM OFFSET ORIGINAL CRACKED
@techieshark
techieshark / copy-into-browser.js
Last active November 9, 2018 12:14
jquery-and-lodash-in-console
// For quickly trying things out in the browser, jQuery and Lo-Dash (like Underscore.js) are great.
// Read the code below (never copy & paste code you don't trust),
// then you can copy & paste it into the browser console to load jQuery & lodash.
(function () {
var jq = document.createElement('script');
jq.src = 'https://code.jquery.com/jquery-2.1.4.js';
// PhantomJS Cheatsheet
$ brew update && brew install phantomjs // install PhantomJS with brew
phantom.exit();
var page = require('webpage').create();
page.open('http://example.com', function() {});
page.evaluate(function() { return document.title; });
@furaibo
furaibo / e-hentai.py
Last active May 5, 2024 06:26
E-Hentaiギャラリーの画像をダウンロードするPythonスクリプトです。ご自由にお使い下さい。
#!/usr/bin/python
#-*-coding:utf-8 -*-
# E-HentaiのページURLをもとにギャラリー画像を取得するスクリプト
# パッケージのインポート
import os
import sys
import re
import urllib2
@geta6
geta6 / Gruntfile.coffee
Created December 3, 2013 08:39
おれのかんがえたさいきょうのGruntfile
###
Gruntfile by geta6
usage:
grunt only build
grunt server + watch
install:
npm i --save-dev \
grunt \

Startup Rails 4 Project

About

  • Using MySQL database
  • Using HAML, CoffeeScript, SASS(SCSS) templates
  • Using

Set ruby version by rbenv

@takahiro47
takahiro47 / Gemfile
Last active December 22, 2015 12:58
source 'https://rubygems.org'
## Default Gemfiles+
## ---------------------------------------------------------------------
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 or MySQL2 as the database for Active Record
# gem 'sqlite3'
gem 'mysql2'
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
## OS generated files
## -------------------------------------------
# Linux