Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions - RSS</title>
</head>
<body>
<outline text="CAPITALISTS" title="CAPITALISTS">
<outline htmlUrl="https://500hats.com?source=rss----adacc3043f65---4" title="500 Hats - Medium" xmlUrl="https://500hats.com/feed" type="rss" text="500 Hats - Medium"/>
<outline htmlUrl="http://thomasgr.tumblr.com/" title="A personal view on Venture Capital" xmlUrl="http://thomasgr.tumblr.com/rss" type="rss" text="A personal view on Venture Capital"/>
<outline htmlUrl="http://abovethecrowd.com" title="Above the Crowd" xmlUrl="http://abovethecrowd.com/feed/" type="rss" text="Above the Crowd"/>
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions - RSS</title>
</head>
<body>
<outline text="CAPITALISTS" title="CAPITALISTS">
<outline htmlUrl="https://500hats.com?source=rss----adacc3043f65---4" title="500 Hats - Medium" xmlUrl="https://500hats.com/feed" type="rss" text="500 Hats - Medium"/>
<outline htmlUrl="http://thomasgr.tumblr.com/" title="A personal view on Venture Capital" xmlUrl="http://thomasgr.tumblr.com/rss" type="rss" text="A personal view on Venture Capital"/>
<outline htmlUrl="http://abovethecrowd.com" title="Above the Crowd" xmlUrl="http://abovethecrowd.com/feed/" type="rss" text="Above the Crowd"/>
FROM node:6.10-alpine
ENV LANG ja_JP.UTF-8
RUN apk update && \
apk upgrade && \
apk --update --upgrade add \
build-base \
ruby
function encode(text) {
return encodeURIComponent(text);
}
function imFeelingLucky(query) {
var apiUrl = "https://www.googleapis.com/customsearch/v1?"
var queryParams = "&client=google-csbe&cr=countryJP&gl=jp&hl=ja&oe=utf8&num=1&output=xml_no_dtd&safe=off";
var apiKey = "YOURGOOGLECUSTOMSEARCHAPIKEY";
var cx = "YOURGOOGLECUSTOMSEARCHAPICX";
var requestUrl = apiUrl+queryParams+"&key="+apiKey+"&cx="+cx+"&q="+query;
@kechol
kechol / index.js
Last active January 27, 2017 03:42
A small Chrome Extension for MoneyForward. This extension allows you to show budget progress on MF monthly balance page.
window.onload = function () {
var monthlyPage = document.getElementById('page-monthly');
var budgetPage = document.getElementById('page-spending-targets');
// On spending page
if (budgetPage) {
var data = {}, total = 0, cname;
var cids = [3,10,11,12,13,14,15,20,21,4,5,6,7,8,9];
document.getElementsByClassName('budget_form')[0].onsubmit = function () {
@kechol
kechol / _redux-async-action-creator.js
Last active January 29, 2016 06:21
AsyncActionCreator for Redux,
import _ from 'lodash'
import { createAction } from 'redux-actions'a
export const FETCH_API_REQUEST = 'FETCH_API_REQUEST'
export const FETCH_API_SUCCESS = 'FETCH_API_SUCCESS'
export const FETCH_API_FAILURE = 'FETCH_API_FAILURE'
export function createAsyncAction (type, payload, meta) {
const action = {type, payload, meta}
const subActionTypes = {
@kechol
kechol / Dockerfile
Last active January 24, 2016 20:10
Dockerfile for kechol/ansible-playground
FROM ubuntu
MAINTAINER kechol
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y software-properties-common python-software-properties
RUN apt-add-repository -y ppa:ansible/ansible
RUN apt-get update
@kechol
kechol / baseball.py
Last active September 17, 2015 09:54
#!/usr/bin/env python
class Game:
def __init__(self, balls):
self.balls = list(balls)
self.cnt_strike = 0
self.cnt_ball = 0
self.cnt_out = 0
@kechol
kechol / seeds.rb
Created March 12, 2015 14:43
simple data
require 'yaml'
yaml = YAML.load_file("#{Rails.root}/db/seeds.yml")
yaml.each do |model_str, data|
model = model_str.capitalize.constantize
data.each do |id, row|
q = model.find_or_initialize_by id: id
q.update row
end
@kechol
kechol / upstart.config
Last active August 29, 2015 14:16
minimal upstart configuration
description "Description here"
author "Your Name <you@example.com>"
start on runlevel [2345]
stop on runlevel [!2345]
chdir /path/to/whatever
exec /some/exceutable/command
respawn