Skip to content

Instantly share code, notes, and snippets.

View mactkg's full-sized avatar
🍼
I'm feeding milk...

mactkg mactkg

🍼
I'm feeding milk...
View GitHub Profile
// ==Taberareloo==
// {
// "name" : "Fix Tumblr.getTumblelogs 2015.04"
// , "description" : "Fix Tumblr.getTumblelogs 2015.04"
// , "include" : ["background"]
// , "version" : "0.1.2"
// , "downloadURL" : "https://gist.github.com/mactkg/d19a5421c55fa40f5799/raw/ca2da60df200603d322cc7fcafb76eda1febc37f/patch.fix.tumblr.getTumblelogs.tbrl.js"
// }
// ==/Taberareloo==
@mactkg
mactkg / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
source "https://rubygems.org"
require 'twitter'
require 'terminal-notifier'
<!DOCTYPE html>
<html lang="ja"
data-default-locale="en"
data-locale="ja"
data-user-logined="true"
data-user-signed-up="true"
data-user-is-ninja="false"
data-user-is-staff="false"
data-env="production"
var Obj = function() {
this.func = function() {
something.f().then(this._a, this._b);
}
this._a = function() {
//something...(終わったらhoge実行)
}
this._b = function() {

G-F-M test

this is test and this is newline!!!!!

/*
hatenaCardBackgroundChanger
@3846masa
iframeの属性にbackgroundを追加してcss方式で書くとなる(多分)。
*/
window.addEventListener('load',function(){
var list = document.querySelectorAll('iframe[src*="http://hatenablog.com/embed"][background]');
Array.prototype.forEach.call(list, function(node){
[1] pry(main)> module World::Japan::Tokyo
[1] pry(main)* class Nakano
[1] pry(main)* def initialize
[1] pry(main)* p "hello"
[1] pry(main)* end
[1] pry(main)* end
[1] pry(main)* end
NameError: uninitialized constant World
from (pry):1:in `__pry__'
-rw-r--r-- 1 kenta 3158 Jun 2 11:02 CODEOFCONDUCT.md
-rw-r--r-- 1 kenta 846 Jul 15 17:17 CONTRIBUTING.md
drwxr-xr-x 138 kenta 4692 Aug 25 11:14 Cellar
drwxr-xr-x 21 kenta 714 Jul 7 11:38 Frameworks
-rw-r--r-- 1 kenta 1253 Jun 2 11:02 LICENSE.txt
drwxr-xr-x 10 kenta 340 Jul 15 17:17 Library
-rw-r--r-- 1 kenta 1870 Aug 9 04:30 README.md
-rw-r--r-- 1 kenta 23719 Jun 2 11:02 SUPPORTERS.md
drwxr-xr-x 755 kenta 25670 Aug 25 11:17 bin
drwxr-xr-x 22 kenta 748 Aug 25 11:12 etc