Skip to content

Instantly share code, notes, and snippets.

require 'formula'
class Libre < Formula
homepage 'http://www.creytiv.com/re.html'
url 'http://www.creytiv.com/pub/re-0.4.1.tar.gz'
sha1 '44fc82384ac1158192cf4d19be18f7d010fcedda'
def install
system "make"
@technolize
technolize / github-follow-organization.user.js
Created April 21, 2012 16:12
github の organization ページにもフォローボタンを表示する
// ==UserScript==
// @name follow organization
// @description Show follow button on github organization page
// @namespace http://www.technolize.net/
// @include https://github.com/*
// @version 0.1
// @license MIT License
// @work Google Chrome
// ==/UserScript==
@technolize
technolize / gist:1667439
Created January 24, 2012 02:37
dump database scheme
mysqldump --no-data --quote-names=FALSE --add-drop-table=FALSE
#!python
# -*- coding: utf-8; mode: python -*-
import os
import sys
f = sys.argv[1]
name = f.decode('unicode-escape')
os.rename(f, name)
@technolize
technolize / tumblr-blog.niw.at.html
Created October 2, 2011 02:59 — forked from niw/tumblr-blog.niw.at.html
Tumbler Theme for blog.niw.at
<!DOCTYPE html>
<!--
Copyright (c) 2011 Yoshimasa Niwa
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
@technolize
technolize / model_zootool.js
Created May 15, 2011 06:40
Taberareloo から Zootool に投稿するやつ
Models.register({
name: 'Zootool',
ICON: 'http://zootool.com/favicon.ico',
LINK: 'http://zootool.com/',
getCurrentUser : function(defaultUser) {
if (defaultUser) {
return succeed(defaultUser);
} else if(this.currentUser) {
return succeed(this.currentUser);
@technolize
technolize / model_pinboard.js
Created May 15, 2011 06:39
Taberareloo から Pinboard に投稿するやつ
Models.register({
name: 'Pinboard',
ICON: 'http://pinboard.in/favicon.ico',
LINK: 'http://pinboard.in/',
getCurrentUser : function(defaultUser) {
if (defaultUser) {
return succeed(defaultUser);
} else if(this.currentUser) {
return succeed(this.currentUser);
<?php
function logging($file, $var, $type = '[DEBUG]') {
if (empty($file)) return;
if (!is_string($var)) $var = var_export($var, true);
if (!empty($type)) $type .= ' ';
$var = $type . date('Y-m-d H:i:s') . ' ' . $var . "\n";
file_put_contents($file, $var, FILE_APPEND | LOCK_EX);
}
require 'formula'
class Pfff <Formula
url 'https://github.com/facebook/pfff/tarball/RELEASE-0.13'
homepage 'https://github.com/facebook/pfff'
md5 '82e19f8d2f7639e5ec519587cfdf82a4'
head 'git://github.com/facebook/pfff.git'
depends_on 'objective-caml'
depends_on 'pcre'
depends_on 'gtk+' => :optional
@technolize
technolize / outdated.py
Created November 18, 2010 03:27
pip command
import pkg_resources
import xmlrpclib
import pip
import pip.download
from pip.log import logger
from pip.basecommand import Command
from pip.util import get_installed_distributions
from pip.commands.search import transform_hits, compare_versions, highest_version
class OutdatedCommand(Command):