Skip to content

Instantly share code, notes, and snippets.

takafumir / gitignore-for-swift
Last active Apr 27, 2017
.gitignore for Swift / originally based on `gibo swift` and added some other settings.
View gitignore-for-swift
# Xcode
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
takafumir / Regexp.swift
Last active Jun 16, 2016
Swift utility class for regular expression
View Regexp.swift
import Foundation
class Regexp {
let internalRegexp: NSRegularExpression
let pattern: String
init(_ pattern: String) {
self.pattern = pattern
var error: NSError?
self.internalRegexp = NSRegularExpression( pattern: pattern, options: NSRegularExpressionOptions.CaseInsensitive, error: &error)!
takafumir / blog_search_bookmarklet.js
Created Apr 21, 2015
Google Blog Search Bookmarklet
View blog_search_bookmarklet.js
takafumir / 404.php
Created Feb 25, 2015
404 not found page template for wordpress. (MIT License)
View 404.php
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php get_template_part( 'analytics' ); // create analytics.php template file or delete this line. ?>
View create_todo_formated_file.rb
#!/usr/bin/env ruby
require "date"
def this_year
( ARGV[0] || ).to_i
def leap_year?
takafumir / twitpic_downloader.rb
Last active Aug 29, 2015
Twitpic downloader with Ruby
View twitpic_downloader.rb
# Twitpic downloader with Ruby
# This tool enables you to save all your twitpic full-size images.
# Confirmed this tool working with Ruby 2.1.2.
# Usage
# $ mkdir work_dir
# $ ruby twitpic_downloader.rb user_name work_dir
# MIT License
You can’t perform that action at this time.