Skip to content

Instantly share code, notes, and snippets.

View yuchan's full-sized avatar

Yusuke Ohashi yuchan

View GitHub Profile
//
// YODDLog.h
// CocoaLumberjack Configuration
//
// Created by Ohashi Yusuke on 1/2/15.
// Copyright (c) 2015 Ohashi Yusuke. All rights reserved.
//
#ifndef _RSLogger_h
#define _RSLogger_h
@yuchan
yuchan / altkoo
Last active August 29, 2015 14:22
Altkoo
#!/usr/bin/env ruby
# coding: utf-8
# "ALTKOO"を並び替えます。
word = "ALTKOO"
carray = word.split(//)
carray.permutation.to_a.each do |elem|
p elem.join("")
end
#! /usr/bin/env ruby
#
class Val
@@name = {}
attr_accessor :key
def initialize(key)
@@name[key] = key # 便宜上
@key = key
@yuchan
yuchan / gulpfile.coffee
Created August 14, 2015 18:55
Sample Gulpfile for Browserify and React
gulp = require 'gulp'
browserify = require 'browserify'
source = require 'vinyl-source-stream'
reactify = require 'reactify'
watchify = require 'watchify'
_ = require 'lodash'
customOpts =
entries: ['./src/main.js'],
transform: [reactify]
@yuchan
yuchan / .gitignore
Last active October 12, 2015 06:39
My Base Vagrantfile
.vagrant
@yuchan
yuchan / .htaccess
Last active January 14, 2025 11:28
CodeIgniter Template
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

Keybase proof

I hereby claim:

  • I am yuchan on github.
  • I am yusuke (https://keybase.io/yusuke) on keybase.
  • I have a public key whose fingerprint is B8D0 6974 05CD 4CF5 7ED1 03C8 2A06 5688 A0FB 3B4A

To claim this, I am signing this object:

# coding: utf-8
# before execute this script, please install mechanize.
# [sudo] gem install mechanize --no-document
# and run!
# ruby url_encoded_list.rb
require 'mechanize'
require 'cgi'
require 'pp'
box: phusion/passenger-ruby22
build:
steps:
- bundle-install
- script:
name: jekyll-octopress
code: |
bundle exec jekyll build
deploy:
steps:
#!/bin/bash
git fetch origin --prune
for branch in $(git branch -r --list --merged | grep -v "develop" | grep -v "master" | sed -e 's/[A-z]*\///'); do git push origin :${branch}; done;