Skip to content

Instantly share code, notes, and snippets.

View jeyraof's full-sized avatar

LEE Jaeyoung jeyraof

View GitHub Profile
@mhawksey
mhawksey / gist:1442370
Last active February 20, 2026 18:11
Google Apps Script to read JSON and write to sheet
function getJSON(aUrl,sheetname) {
//var sheetname = "test";
//var aUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=286bbb1d8d30f65b54173b3b752fa4d9&_render=json";
var response = UrlFetchApp.fetch(aUrl); // get feed
var dataAll = JSON.parse(response.getContentText()); //
var data = dataAll.value.items;
for (i in data){
data[i].pubDate = new Date(data[i].pubDate);
data[i].start = data[i].pubDate;
}
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 20, 2026 23:40
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@chrislkeller
chrislkeller / import_json_appsscript.js
Last active April 26, 2026 06:56
Adds what amounts to an =ImportJSON() function to a Google spreadsheet... To use go to Tools --> Script Editor and add the script and save.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@rxaviers
rxaviers / gist:7360908
Last active July 20, 2026 04:00
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@nacyot
nacyot / 2013-03-04-ruby-trivias-you-should-know-4.md
Last active April 18, 2026 15:34
μ•Œμ•„λ‘λ©΄ 도움이 λ˜λŠ” 55κ°€μ§€ 루비 기법

μ•Œμ•„λ‘λ©΄ 도움이 λ˜λŠ” 55κ°€μ§€ 루비 기법

RubyλŠ” 즐거운 μ–Έμ–΄μž…λ‹ˆλ‹€. Rubyλ₯Ό μ‚¬μš©ν•˜λ‹€λ³΄λ©΄ 맀뉴얼에도 λ‚˜μ™€μžˆμ§€ μ•Šμ€ 'μž‘μ€ 발견'을 λ§Œλ‚˜κ²Œ λ©λ‹ˆλ‹€. μ΄λŸ¬ν•œ '발견'은 ν”„λ‘œκ·Έλž¨μ˜ μ§ˆμ΄λ‚˜

@hest
hest / gist:8798884
Created February 4, 2014 06:08
Fast SQLAlchemy counting (avoid query.count() subquery)
def get_count(q):
count_q = q.statement.with_only_columns([func.count()]).order_by(None)
count = q.session.execute(count_q).scalar()
return count
q = session.query(TestModel).filter(...).order_by(...)
# Slow: SELECT COUNT(*) FROM (SELECT ... FROM TestModel WHERE ...) ...
print q.count()
@if1live
if1live / shift.py
Created April 7, 2014 23:56
Implement shift operator without multiplication,division,bit operators
#!/usr/bin/env python
#-*- coding: utf-8 -*-
def left_shift(n):
return n + n
def is_bit_on(n, bit):
a = n % bit
b = n % left_shift(bit)
if not b:
@fujiwara
fujiwara / agent.conf
Created August 14, 2014 08:39
benchmark fluentd vs fluent-agent-lite vs fluent-agent-hydra
<source>
type tail
path /dev/shm/tmp/dummy.log
pos_file /var/tmp/_var_log_dummy.pos
format none
tag dummy
</source>
<match dummy>
type copy
<store>
// built files are found at /public/__build__/*
// how do I get `webpack` to build to `public/__build__/`
// but have the webpack dev server serve `public/index.html`
// and the bundles from `/__build__/`?
//
// I'm using this to run the server
//
// webpack-dev-server --inline --content-base public/
//
// and this is my config: