Skip to content

Instantly share code, notes, and snippets.

View u1aryz's full-sized avatar
Unemployed

u1aryz u1aryz

Unemployed
View GitHub Profile
@uasi
uasi / create-chrome-launcher.sh
Created March 23, 2011 05:31
Create an .app that launches Google Chrome with a specified profile
#!/bin/sh
#
# Create Google Chrome launcher (for Mac)
#
CHROME_APP="/Applications/Google Chrome.app"
CHROME_PROFILE_DIR="$HOME/Library/Application Support/Google/Chrome"
echo "Enter profile name: \c"
@darkseed
darkseed / Reachability.h
Created August 30, 2011 23:16 — forked from dhoerl/Reachability.h
Reachability (iOS) ARCified
/*
File: Reachability.h
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
Version: 2.2 - ARCified
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
("Apple") in consideration of your agreement to the following terms, and your
use, installation, modification or redistribution of this Apple software
@vvakame
vvakame / cakefile
Created December 24, 2011 02:34
My default Cakefile
util = require 'util'
fs = require 'fs'
exec = require('child_process').exec
spawn = require('child_process').spawn
callback = (child) ->
child.stdout.on 'data', (data) ->
util.print data
exec "notify-send Cakefile \"#{data}\""
child.stderr.on 'data', (data) ->
@vvakame
vvakame / ig-module.coffee
Created December 26, 2011 06:22
簡易 CommonJS の module っぽいやつ
# CommonJS の module っぽい何かを提供する っぽいだけ
root = global ? window
root.exports = root.exports || {}
exports = root.exports
createExports = (moduleName)->
exports[moduleName] = exports[moduleName] || {}
# global に展開
@matope
matope / NoSQLデータモデリング技法.markdown
Created April 16, 2012 03:35
NoSQLデータモデリング技法

#NoSQLデータモデリング技法

原文:NoSQL Data Modeling Techniques « Highly Scalable Blog

I translated this article for study. contact matope[dot]ono[gmail] if any problem.

NoSQLデータベースはスケーラビリティ、パフォーマンス、一貫性といった様々な非機能要件から比較される。NoSQLのこの側面は実践と理論の両面からよく研究されている。ある種の非機能特性はNoSQLを利用する主な動機であり、NoSQLシステムによく適用されるCAP定理がそうであるように分散システムの基本的原則だからだ。一方で、NoSQLデータモデリングはあまり研究されておらず、リレーショナルデータベースに見られるようなシステマティックな理論に欠けている。本稿で、私はデータモデリングの視点からのNoSQLシステムファミリーの短い比較といくつかの共通するモデリングテクニックの要約を解説したい。

本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う

@daichan4649
daichan4649 / MainActivity.java
Created April 17, 2012 12:35
DialogFragment sample
package test.fragment;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
public class MainActivity extends Activity {
@vvakame
vvakame / Server.cs
Created May 8, 2012 09:32
HttpServer by C#
using System;
using System.IO;
using System.Text;
using System.Net;
using System.Net.Sockets;
namespace Mti
{
class HttpServer
{
@STAR-ZERO
STAR-ZERO / FontFitTextView.java
Created June 15, 2012 03:18
【Android】横幅に合わせてテキストサイズを調整するTextView
import android.content.Context;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.widget.TextView;
/**
* サイズ自動調整TextView
*
*/
module.exports = function (grunt) {
grunt.initConfig({
clean:{
js:{
files:[
'<config:concat.src.dest>',
'<config:concat.tests.dest>',
'<config:min.dist.dest>'
],
(function(global) {
var Hoge, Fuga, SampleView;
Hoge = (function() {
function Hoge() {
}
Hoge.prototype.init = function(str) {
str = str || "hoge";