Skip to content

Instantly share code, notes, and snippets.

View zerobase's full-sized avatar

Hideto Ishibashi zerobase

View GitHub Profile
namespace :minifier do
JAR = "/Users/blanders/MyDocs/Library/yuicompressor.jar"
def minify(files)
files.each do |file|
next if file =~ /\.min\.(js|css)/
minfile = file.sub(/\.js$/, ".min.js").sub(/\.css$/, ".min.css")
cmd = "java -jar #{JAR} #{file} -o #{minfile}"
@matsubo
matsubo / gist:2543898
Created April 29, 2012 08:10
Import all the text file into evernote.
set listOfNames to {}
set theFolder to choose folder "Select the source folder"
tell application "Finder"
set filelist to every file of the folder theFolder
repeat with currentFile in filelist
set currentFileName to (the name of currentFile)
set nom to currentFileName
if text -4 of nom is "." then
set currentFileName to (text 1 thru -5 of nom)
@novi
novi / gist:5791322
Last active December 18, 2015 13:39
Windows 8 に入れたアプリ一覧
  • Copy - クラウドストレージ
  • DropboxPortable AHK - DropboxをSDカードに置く
  • Git Extension - gitとGUIセット
  • Intellij - IDE
  • MacType - フォントのアンチエイリアシングを改善
  • MarkdownPad2 - Markdownエディタ
  • Rapid Environment Editor - 環境変数エディタ
  • Start8 - 7以前のスタートメニューを追加
  • WinRAR - ファイル解凍
  • WizMouse - マウスの挙動をMacに近づける
@FabienGandon
FabienGandon / .htaccess for RDF voc
Created September 25, 2008 10:34
content negotiation in .htaccess to serve an RDF voc as HTML or rdf+xml depending on the client request
# Turn off MultiViews
Options -MultiViews
# Directive to ensure *.rdf files served as appropriate content type,
# if not present in main apache config
AddType application/rdf+xml .rdf
# Rewrite engine setup
RewriteEngine On
RewriteBase /irc/2008/09/25
@gaspanik
gaspanik / st2pkgs-for-webdev.markdown
Last active January 18, 2021 09:05
ST2: Sublime Text 2 Packages for Web Developers.

Recommended Sublime Text 2 Packages for Web Developers.

Update

  • 「Browser Support」を追加しました。

2013 Spring & Summer

こもりが使っているモノやそうでないものも含め、なんとなくWebデザイナーやWebデベロッパーな人たちに便利そうなのを集めてみました。

@kohyama
kohyama / primes.clj
Created September 28, 2015 05:55
Prime numbers in Clojure
(def prime-numbers
((fn f [x]
(cons x
(lazy-seq
(f (first
(drop-while
(fn [n]
(some #(zero? (mod n %))
(take-while #(<= (* % %) n) prime-numbers)))
(iterate inc (inc x))))))))
@Jakobud
Jakobud / bootstrap-ms.scss
Last active June 15, 2022 12:42 — forked from andyl/bootstrap_ms.css.scss
Adds in the missing 480px-797px breakpoint range to Bootstrap 3 for SASS
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
//
// This is a hack to fill the gap between 480 and 767 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
//
// Contains:
// Columns, Offsets, Pushes, Pulls for the Mid-Small layout
// Visibility classes for the Mid-Small layout
// Redefined visibility classes for the Extra Small layout
@jgarber
jgarber / MIT-LICENSE.txt
Created April 4, 2012 14:57
Responsive video
Copyright (c) 2011 ZURB, http://www.zurb.com/
@stravid
stravid / category_aware_next_generator.rb
Created November 15, 2012 14:22
Category aware next attribute for a Jekyll post
module Jekyll
class CategoryAwareNextGenerator < Generator
safe true
priority :high
def generate(site)
site.categories.each_pair do |category_name, posts|
posts.sort! { |a, b| b <=> a }
@voluntas
voluntas / eval.rst
Last active April 8, 2024 03:13
評価制度の無い評価制度