Skip to content

Instantly share code, notes, and snippets.

View scari's full-sized avatar
💭
sprinting on

Younggun Kim scari

💭
sprinting on
View GitHub Profile

Keybase proof

I hereby claim:

  • I am scari on github.
  • I am scari (https://keybase.io/scari) on keybase.
  • I have a public key ASAcQQsH5AmSYGd2giYkVJDtazliK2AvDz8F8JSk9rTxDAo

To claim this, I am signing this object:

@scari
scari / app-store-ratings.php
Created April 12, 2016 18:46 — forked from kentbye/app-store-ratings.php
Scrape iOS app review data from iTunes
<?php
/**
* Scrape the number of app reviews from iTunes.
*
* Set the iOS app id and the number of pages to scrape, and it creates a {$app_id}-reviews.csv file
*
* @author Kent Bye <[email protected]>
* Modified and extended from Sean Murphy's gist at https://gist.github.com/1878352
*/
@scari
scari / aws_latency.md
Last active November 25, 2020 04:02
AWS Latency

Disclaimer

This is not an official report nor reliable benchmark. The testing environments are vary. These EC2 latencies are measured by http://aws-latency.altaircp.com/ Thanks to my friends!

If you want to add a result from your location, feel free to comment on this gist. Please note that you need to try it several times to get an accurate result.

Seoul, Korea

Asia Pacific (Seoul)	ap-northeast-2	19ms
Asia Pacific (Tokyo)	ap-northeast-1	92ms
#!/bin/bash
# Excerpts from https://enterprise.travis-ci.com/install/worker
#
populate_images() {
DOCKER_CMD="docker -H tcp://0.0.0.0:2375"
# pick the languages you are interested in
langs='android erlang go haskell jvm node-js perl php python ruby'
declare -a lang_mappings=('clojure:jvm' 'scala:jvm' 'groovy:jvm' 'java:jvm' 'elixir:erlang' 'node_js:node-js')
#!/usr/bin/env python3
import json
import gspread
from numpy.random import choice
from oauth2client.client import SignedJwtAssertionCredentials
SCOPE = ['https://spreadsheets.google.com/feeds']
json_key = json.load(open('google-apis-6b5aa3a6304d.json'))
credentials = SignedJwtAssertionCredentials(json_key['client_email'], bytes(json_key['private_key'], 'utf-8'), SCOPE)
#!/usr/bin/env python3
import json
import requests
import numpy.random
# https://developers.facebook.com/tools/explorer
# I've used v2.3 and you need `read_stream` permission to use this script.
from local_setting import FB_ACCESS_TOKEN
POST_ID = '10206524181161780' # Use your one. This is mine XD
@scari
scari / .tmux.conf
Created June 22, 2015 08:46
tmux configuration
# $Id: vim-keys.conf,v 1.2 2010-09-18 09:36:15 nicm Exp $
#
# vim-keys.conf, v1.2 2010/09/12
#
# By Daniel Thau. Public domain.
#
# This configuration file binds many vi- and vim-like bindings to the
# appropriate tmux key bindings. Note that for many key bindings there is no
# tmux analogue. This is intended for tmux 1.3, which handles pane selection
# differently from the previous versions
@scari
scari / spacing.py
Last active February 17, 2017 06:04
autospacing
#!/usr/bin/env python3
import sys
import re
import json
import requests
from colorama import init, Fore, Back, Style
URL = 'https://m.search.naver.com/p/csearch/dcontent/spellchecker.nhn'
@scari
scari / gist:1173a9519d8b89000c08
Last active August 29, 2015 14:20
pandas7754_resample_perf.ipynb
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
@scari
scari / build.sh
Created March 10, 2015 20:51
Building OpenCV 3.0 Beta on Mac OS X Yosemite with Anaconda / Python3.
# My configuration.
# I had a trouble with `cuda` so I disabled it.
# Don't forget to change dynamic shared lib install name after the build has finished.
#
# ex:
# $ sudo install_name_tool -change libpython3.4m.dylib ~/anaconda3/lib/libpython3.4m.dylib ~/anaconda3/lib/python3.4/site-packages/cv2.so
ANACONDA=/Users/scari/anaconda3
cmake -Wno-dev -D CMAKE_BUILD_TYPE=RELEASE \
-D BUILD_PERF_TESTS=OFF \