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
@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]
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"
require 'formula'
class X264DownloadStrategy < CurlDownloadStrategy
def tarball_path
Pathname.new("#{HOMEBREW_CACHE}/#{name}-#{resource.version}#{ext}")
end
def ext
'.tar.gz'
end
@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)
UP seek 59
DOWN seek -59
RIGHT seek 9.5
LEFT seek -9.5
class Pair
attr_accessor :one, :two
def initialize(one, two)
@one = one
@two = two
end
end
@henry0312
henry0312 / fizzbuzz.swift
Created June 8, 2014 15:35
FizzBuzz with Swift
func FizzBuzz(n: Int) {
for i in 1...n {
if i % 15 == 0 {
println("FizzBuzz")
} else if i % 3 == 0 {
println("Fizz")
} else if i % 5 == 0 {
println("Buzz")
} else {
println(i)
$ ./waf build -j2
Waf: Entering directory `/Users/henry/repos/mpv/build'
[ 1/230] macosx_icon.inc: TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns -> build/osdep/macosx_icon.inc
[ 2/230] x11_icon.inc: video/out/x11_icon.bin -> build/video/out/x11_icon.inc
[ 3/230] input_conf.h: etc/input.conf -> build/input/input_conf.h
[ 4/230] gl_video_shaders.h: video/out/gl_video_shaders.glsl -> build/video/out/gl_video_shaders.h
[ 5/230] osd_font.h: sub/osd_font.otf -> build/sub/osd_font.h
[ 6/230] defaults.inc: player/lua/defaults.lua -> build/player/lua/defaults.inc
[ 7/230] assdraw.inc: player/lua/assdraw.lua -> build/player/lua/assdraw.inc
[ 8/230] options.inc: player/lua/options.lua -> build/player/lua/options.inc
--- Makefile.orig 2014-06-12 00:51:39.159419824 +0900
+++ Makefile 2014-06-12 00:51:47.811419492 +0900
@@ -8,7 +8,7 @@
# MAC_LDFLAGS = -lgsl -latlas -lcblas -L/sw/li
MAC_LDFLAGS = -lgsl -lgslcblas -L/opt/local/lib
-C2_LDFLAGS = -lgsl -lcblas -latlas
+C2_LDFLAGS = -lgsl -lcblas -latlas -lm
CYCLES_LDFLAGS = -lgsl -lgslcblas
LSOURCE = utils.c topic.c doc.c hyperparameter.c main.c gibbs.c
import Cocoa
enum Node {
case Parent(NSMenu, Node)
case Child(NSMenuItem, Node)
}