% vnc start
% vnc stop
This file contains hidden or 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
// ==Taberareloo== | |
// { | |
// "name" : "Patch for Twitter Model" | |
// , "description" : "Patch for Twitter model" | |
// , "include" : ["background"] | |
// , "version" : "0.2.2" | |
// , "downloadURL" : "https://gist.github.com/YungSang/9205023/raw/patch.model.twitter.tbrl.js" | |
// } | |
// ==/Taberareloo== |
This file contains hidden or 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
// | |
// ofxSimpleTheta.h | |
// ofxSimpleTheta | |
// | |
// Created by Ovis aries on 2014/01/11. | |
// | |
// | |
#ifndef ofxSimpleTheta_ofxSimpleTheta_h | |
#define ofxSimpleTheta_ofxSimpleTheta_h |
This file contains hidden or 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
// 2016-09-23 リポジトリにしました。 | |
// https://github.com/tsmd/twitter-text-tweetlength-js |
This file contains hidden or 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or 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
# A | |
gon.users = User.where(id: user_ids).map { |user| | |
{ | |
id: user.id. | |
html: render_to_string("users/profile" as: :user, object: user) | |
} | |
} | |
# B | |
gon.users = User.where(id: user_ids).map do |user| |
今日は割と Spike な branch ばかりつくっていたので、その備忘録などを兼ねて。
https://github.com/visionmedia/supertest
supertest は express の app のテストを書くことができるようになる。今やってるプロジェクトはそれぞれのユニットテストはテストファーストで書きながら TDD よろしくサイクルさせていたのだけれど肝心の結合部分であるところの app.js
はノンテストっていう状況だった。
そのせいで、デグレてしまうこともあったのでいい加減この結合部分もテスト書かなくては!と使命感に駆られて書いた。
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import argparse | |
import glob | |
import logging | |
import os | |
import re | |
import subprocess | |
import time | |
from multiprocessing import ( |