This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:6.10-alpine | |
ENV LANG ja_JP.UTF-8 | |
RUN apk update && \ | |
apk upgrade && \ | |
apk --update --upgrade add \ | |
build-base \ | |
ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Description here" | |
author "Your Name <[email protected]>" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
chdir /path/to/whatever | |
exec /some/exceutable/command | |
respawn |