Skip to content

Instantly share code, notes, and snippets.

View Nyoho's full-sized avatar
:octocat:
GitHubing

北䑓如法 Nyoho

:octocat:
GitHubing
View GitHub Profile
@gnue
gnue / Dockerfile
Last active August 29, 2015 13:56
goreman を使って docker で複数プロセスを起動する
# sshd+nginx
#
# VERSION 0.0.1
FROM ubuntu
RUN apt-get update
# sshd
RUN apt-get install -y openssh-server
@mahm
mahm / AudioManager.cs
Created February 16, 2014 04:27
Unity de sashimi
using UnityEngine;
using System.Collections;
public class AudioManager : SingletonMonoBehaviour<AudioManager> {
AudioClip bgm_Game;
AudioClip se_Tanpopo;
private const int source_bgm_Game = 0;
private const int maxAudio = 10;
@eiel
eiel / Myistp.hs
Last active August 29, 2015 14:10
Lisp インタープリタ勉強で学んだことを試した。
module Mylisp where
import Data.HashMap.Strict as HM hiding (map)
import Data.Maybe
import Data.List as L hiding (insert)
data Value = Func ([Value] -> Value) |
List [Value] |
Symbol String |
Number Int
@kwgch
kwgch / hiki.rb
Created December 30, 2014 06:07
rackメモ
#!/usr/bin/env ruby
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'hiki/app'
require 'rubygems'
require 'rack'
module Rack
class Request
@norio-nomura
norio-nomura / datesMatchingComponents.swift
Created March 18, 2015 15:04
SequenceOf<T>とGeneratorOf<T>を使う
import Foundation
func dates(#matchingComponents: NSDateComponents, var startDate: NSDate = NSDate(), endDate: NSDate = NSDate.distantFuture() as! NSDate) -> SequenceOf<NSDate> {
return SequenceOf<NSDate> { _ -> GeneratorOf<NSDate> in
let calendar = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian)!
calendar.timeZone = NSTimeZone(forSecondsFromGMT: 0)
return GeneratorOf<NSDate> {
if let nextDate = calendar.nextDateAfterDate(startDate, matchingComponents: matchingComponents, options: .MatchStrictly)
where nextDate.compare(endDate) != .OrderedDescending {
startDate = nextDate
@zr-tex8r
zr-tex8r / matrix.tex
Created November 29, 2015 04:24
LaTeX: complicated matrix description
\documentclass[uplatex,dvipdfmx,9pt,a5paper,papersize,fleqn]{jsarticle}
\usepackage{tikz,varwidth}
\usetikzlibrary{matrix,decorations.markings}
\begin{document}
\begin{equation}
\makebox[0pt][r]{\makebox[\mathindent][l]{1)}}
P_n(i,j) = \left(\begin{varwidth}[c]{\linewidth}%
\newcommand{\X}{\phantom{0}}%
\begin{tikzpicture}[
@eiel
eiel / doorkeeper-participants.md
Created October 9, 2013 11:03
Doorkeeper の参加者一覧が欲しい。調べたことを書いておく。 https://github.com/great-h/great-h.github.io/issues/323
@takaxp
takaxp / update-cask.sh
Created September 3, 2016 10:59
update-cask.sh
#!/bin/sh
# exec cd ~/.emacs.d && cask upgrade-cask if you upgrade cask itself.
CASKPATH=~/.emacs.d/.cask
#VERSION=24.5.1
#VERSION=25.0.95.1
VERSION=25.1.1
SUBDIR=package
BACKUPDIR=~/Dropbox/backup
@takaxp
takaxp / emacs-24.5-inline.patch
Created April 11, 2015 15:47
An inline patch for Emacs 24.5
diff -crN emacs-24.5/configure.ac emacs-24.5_patched/configure.ac
*** emacs-24.5/configure.ac 2015-04-02 16:23:06.000000000 +0900
--- emacs-24.5_patched/configure.ac 2015-04-12 00:10:11.000000000 +0900
***************
*** 1782,1788 ****
INSTALL_ARCH_INDEP_EXTRA=
fi
! NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
fi
@nishimotz
nishimotz / py35-161002.ipynb
Last active October 2, 2016 15:57
如法会 2 (⊃ LT駆動開発30) http://nyoho.connpass.com/event/39977/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.