Skip to content

Instantly share code, notes, and snippets.

View sh19910711's full-sized avatar

Hiroyuki Sano sh19910711

View GitHub Profile
path = require 'path'
yeoman = require 'yeoman-generator'
module.exports = class TestGenerator extends yeoman.generators.Base
constructor: (args, options, config) ->
yeoman.generators.Base.apply this, arguments
@on 'end', ->
@installDependencies skipInstall: options['skip-install']
@pkg = JSON.parse @readFileAsString path.join __dirname, '../package.json'

test

@sh19910711
sh19910711 / !git-contest.md
Last active January 3, 2016 23:38
git-contest specification drafts
@sh19910711
sh19910711 / GSoC2016.md
Created August 22, 2016 13:14
Ruby::GSoC2016::WebConsole
@sh19910711
sh19910711 / client.cpp
Created March 10, 2013 04:34
UNIX-domain socketsを使ってClient/Serverする例
// compile: g++ -lboost_system client.cpp
#include <iostream>
#include <boost/asio.hpp>
const std::string SOCKET_NAME = "/tmp/socket";
int main(){
boost::asio::io_service io_service;
boost::asio::local::stream_protocol::socket socket(io_service);
boost::asio::local::stream_protocol::endpoint ep(SOCKET_NAME);