Skip to content

Instantly share code, notes, and snippets.

View yuya-takeyama's full-sized avatar
🎐
Humility, Kindness, Bonds

Yuya Takeyama yuya-takeyama

🎐
Humility, Kindness, Bonds
View GitHub Profile
@HenrikJoreteg
HenrikJoreteg / nodeconf_2011.md
Created May 6, 2011 18:50 — forked from guybrush/nodeconf_2011.md
a list of slides from nodeconf 2011
@CHH
CHH / MetaObject.php
Created August 30, 2011 13:55
PHP does Meta Programming too! (Requires PHP 5.4)
<?php
namespace CHH;
trait MetaObject
{
protected static $__metaClass;
static function setMetaClass(MetaClass $metaClass)
{
@x7c1
x7c1 / TestPrototype.php
Created September 11, 2011 17:11
prototype-based oop in php
<?
include_once 'prototype.php';
use Prototype\Klass;
class TestPrototype extends PHPUnit_Framework_TestCase{
public function test_sample(){
$Person = Klass::create(function($first, $last){
$this->_first = $first;
$this->_last = $last;
@laiso
laiso / gist:1217214
Last active October 29, 2020 18:18
[日記] 厨2病フレーズだけで記述できるプログラミング言語 のイメージ
# 厨2病フレーズだけで記述できるプログラミング言語 のイメージ
何ッ ()
もしも それ が 真実 なの ならば———
これ は 大変なことになるぞ! (いや?)\
まぁ…… いい…
ククク…… 見せてもらおうじゃないか…… ←\
旋律 の 傀儡師 の 実力とやらを! # TODO なぜだ!? 動く!?
@sasezaki
sasezaki / TestProject_pirum.xml
Created October 8, 2011 03:17
sample pear channel by phix for github gh-pages
<?xml version="1.0" encoding="UTF-8" ?>
<server>
<name>diggin.github.com/TestProject</name>
<summary>Phix Sample PEAR channel</summary>
<alias>TestProject</alias>
<url>http://diggin.github.com/TestProject</url>
</server>
@masaedw
masaedw / fizzbuzz.hs
Created October 9, 2011 09:47 — forked from yuya-takeyama/fizzbuzz.hs
FizzBuzz in Haskell.
fizzbuzzList = [x | x <- map fizzbuzz [1..]]
where fizzbuzz x | x `mod` 15 == 0 = "FizzBuzz"
| x `mod` 5 == 0 = "Buzz"
| x `mod` 3 == 0 = "Fizz"
| otherwise = show x
main = do
mapM_ putStrLn $ take 100 $ fizzbuzzList
@aereal
aereal / Guardfile
Created December 7, 2011 17:32
Guardfile for Spork x RSpec x Padrino
guard 'spork', rspec_env: { 'PADRINO_ENV' => 'test' } do
watch('config/apps.rb')
watch('config/boot.rb')
watch('config/database.rb')
watch('Gemfile')
watch('Gemfile.lock')
watch('spec/spec_helper.rb') { :rspec }
end
guard 'rspec', :version => 2 do
@paulmillr
paulmillr / active.md
Last active March 17, 2025 08:21
Most active GitHub users (by contributions). https://paulmillr.com

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers
@ssig33
ssig33 / yosou.rb
Created June 25, 2012 08:16
ファーストサーバーの事故についてちょっと具体的に想像してみました
# ホットスタンバイがバックアップじゃないとかその手の話はとりあえず置いておきます
#
# なぜこんな間抜けな事故が起きたかについてだけ想像
#
# 1. いろんなサーバーメンテナンスをスクリプトでやっていた
# 2. スクトプトは随時使い回したり書き換えたりして使っていた
#
# という状態であったと推測する。中小規模自社サービスとかやってるところとかもわり
# とこうなんじゃないですかね。ホスティングでそのレベルでいい加減なのどうなんでし
# ょうか。