Skip to content

Instantly share code, notes, and snippets.

mactkg /
Created Nov 24, 2019 — forked from masuidrive/
Install code-server on Coder
mactkg / main.js
Last active Jun 20, 2018 — forked from masuidrive/main.js
Google SpreadsheetからBigQueryを呼び出すスクリプト
View main.js
* Google Spreadsheet向けBigQuery取り込みスクリプト
* License: MIT 2014- Toreta, Inc.
* runAllQueries() をトリガーで毎日実行してください
* Queries, Single row queries, Dataの三つのシートを作って下さい
* Queries, Single row queriesのシートには実行するクエリを書きます
* A列にクエリ名、B列にクエリです。
* conuntなどの集約関数で1行しか返らないクエリは「Single row queries」、それ以外は「Queries」に書いて下さい
mactkg / osxSetup.command
Created May 19, 2016 — forked from motoishmz/osxSetup.command
osx setup command. use
View osxSetup.command
### Desktop & Screen Saver
# Desktopを黒に
echo "Change Desctop Pictures"
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Gray Pro Ultra Dark.png"'
# ScreenSaver Kill
echo "Disable screensaver"
View on-jsx.markdown

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'

mactkg / .vimrc
Last active Aug 29, 2015 — forked from michaelfox/vimrc
Basic / Simple vimrc config file
View .vimrc
set nocompatible
set encoding=utf-8
set hidden
filetype plugin indent on
syntax on
set synmaxcol=2048 " Don't syntax highlight super-long lines (for performance)
set autoindent " automatically indent lines and try to do it intelligently
set smartindent
set backspace=indent,eol,start " backspace behaves 'normally'
View patch.fix.tumblr.getTumblelogs.tbrl.js
// ==Taberareloo==
// {
// "name" : "Fix Tumblr.getTumblelogs 2015.04"
// , "description" : "Fix Tumblr.getTumblelogs 2015.04"
// , "include" : ["background"]
// , "version" : "0.1.2"
// , "downloadURL" : ""
// }
// ==/Taberareloo==
mactkg / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View hatenaCardBgChanger.js
var list = document.querySelectorAll('iframe[src*=""][background]');, function(node){
View arduino.ino
// arduino
void setup(){
void loop(){
View light.ino
void setup(){
int last_sw;
void loop(){
int sw = digitalRead(2);
int light=0;
You can’t perform that action at this time.