Skip to content

Instantly share code, notes, and snippets.

View henry0312's full-sized avatar
💭
I may be slow to respond.

OMOTO Tsukasa henry0312

💭
I may be slow to respond.
View GitHub Profile
class Pair
attr_accessor :one, :two
def initialize(one, two)
@one = one
@two = two
end
end
UP seek 59
DOWN seek -59
RIGHT seek 9.5
LEFT seek -9.5
@henry0312
henry0312 / gist:10910712
Last active August 29, 2015 13:59
brew tests
$ brew tests
Loaded suite /Users/henry/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-10.1.1/lib/rake/rake_test_loader
Started
...............................................................................
...............................................................................
...............................................................................
................................................................F
===============================================================================
Failure:
test_update_homebrew_with_tapped_formula_changes(UpdaterTests)
require 'formula'
class X264DownloadStrategy < CurlDownloadStrategy
def tarball_path
Pathname.new("#{HOMEBREW_CACHE}/#{name}-#{resource.version}#{ext}")
end
def ext
'.tar.gz'
end
require "formula"
class LSmash < Formula
homepage "http://up-cat.net/L%252DSMASH.html"
url "https://github.com/l-smash/l-smash/archive/v1.3.2.tar.gz"
sha1 "1d95da3d90df1b4d549b7cccacf8575b4f8ead8b"
head "https://github.com/l-smash/l-smash.git"
option "disable-static", "doesn't compile static library"
option "enable-shared", "also compile shared library besides static library"
@henry0312
henry0312 / clang.log
Created March 15, 2014 08:02
checkasm
x264: using random seed 1760353617
x264: MMX
- pixel sad : [OK]
- pixel sad_aligned : [OK]
- pixel ssd : [OK]
- pixel satd : [OK]
- pixel sad_x3 : [OK]
- pixel sad_x4 : [OK]
- pixel var : [OK]
- pixel hadamard_ac : [OK]
@henry0312
henry0312 / controller
Created February 15, 2014 10:47
Inserting multiple rows on FuelPHP
public function action_index()
{
Model_Test::test(); exit;
}
# vim: syntax=config
# https://github.com/pigoz/dotfiles/blob/master/mpv/config
################################################################################
# General
################################################################################
#use-filedir-conf=yes # load config file from file directory
correct-pts=yes
msgcolor=yes
<?php
/**
* Make php.dict for neosnippet.vim
*
* Require:
* PHP 5.4 or later
*
* Usage:
* php make_php_dict.php > php.dict
!
!=
!~
%
&
*
**
+
+@
-