Skip to content

Instantly share code, notes, and snippets.

View matsuyoro's full-sized avatar

matsu matsuyoro

  • japan
View GitHub Profile
worker_processes 2;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@noahcampbell
noahcampbell / squid.bash
Created April 14, 2011 00:01
Collectd script for squid
# Steps for turning on squid monitoring (until I have an rpm)
cat > /etc/collectd.d/squid << EOF
LoadPlugin exec
<Plugin exec>
Exec deploy "/var/lib/releng/monitoring/squid"
</Plugin>
EOF
mkdir -p /var/lib/releng/monitoring
@Nully
Nully / jquery.query-parameter.js
Last active February 20, 2018 05:58
URLの?以降(GET値)を取得する
// jQuery版に書き換えた
(function($){
var queries = (function(){
var s = location.search.replace("?", ""),
query = {},
queries = search.split("&"),
i = 0;
if(!s) return null;
@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@ichitaso
ichitaso / tenkaichi-git.md
Created November 21, 2012 01:36 — forked from teppeis/tenkaichi-git.md
天下一gitconfig大会

ぎっとぎとにしてやんよ

DojoCat

  • gistでmarkdown書いたらbookmarkletでプレゼンになるよ。
  • ↓これをBookmarkに登録してこのページで実行してみよー!
@yaeda
yaeda / AssetBundleSample.cs
Created April 18, 2013 07:30
Unity AssetBundle Examples.
using System;
using UnityEngine;
using System.Collections;
public class AssetBundleSample : MonoBehaviour {
public GUIText guitext;
// Use this for initialization
void Start () {
@yasushiyy
yasushiyy / vagrant_coreos_docker.md
Last active January 28, 2019 11:35
Vagrant + CoreOS + Dockerを利用した開発環境セットアップ

Vagrant + CoreOS + Dockerを利用した開発環境セットアップ

MacOSX + Vagrant + CoreOS + Docker + Ubuntuの環境。

2014年6月11日時点での情報。

  • Version: CoreOS 343.0.0
  • Kernel: 3.14.5
  • Docker: 1.0
#include "HelloWorldScene.h"
USING_NS_CC;
Scene *HelloWorld::createScene(){
auto scene = Scene::create();
auto layer = HelloWorld::create();
scene->addChild(layer);
return scene;
}
@matsuyoro
matsuyoro / smb.conf
Last active June 30, 2018 19:08
/etc/samba/smb.conf 指定ディレクトリを指定ユーザーだけsambaでアクセス可能に(Centos6.5+samba3.6)
[public]
# コメント
comment = Public space
# 共有するディレクトリのパス
path = /var/www/hoge
# guestユーザのアクセスを許可するか
guest ok = no
@Buravo46
Buravo46 / EaseInOutExample.cs
Created January 29, 2015 13:15
【Unity】スクリプトでAnimationClipの実装をする3種類のサンプルスクリプト
using UnityEngine;
using System.Collections;
/*===============================================================*/
/**
* EaseInOutによる実装サンプル
* 2015年1月28日 Buravo
*/
public class EaseInOutExample : MonoBehaviour
{
#region メンバ変数