Skip to content

Instantly share code, notes, and snippets.

Tomohiro Imaizumi incheon

Block or report user

Report or block incheon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@luislavena
luislavena / howto-manually-add-trust-cert-to-rubygems.md
Last active Sep 29, 2019
Workaround RubyGems' SSL errors on Ruby for Windows (RubyInstaller)
View howto-manually-add-trust-cert-to-rubygems.md

SSL upgrades on rubygems.org and RubyInstaller versions

UPDATE 2016-12-01: Please refer to the official guide instead of this process.

UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.


Hello,

@udzura
udzura / tutorial.md
Created Jun 2, 2014
Hubot + CoffeeScript ではじめるやわらかプログラミング入門
View tutorial.md

やわらかプログラミング入門

  • Hubot であそぼう


始めに、地図を描く

@YuukiTsuchida
YuukiTsuchida / UnixTime
Created May 23, 2014
C#でのUnixTime
View UnixTime
public static class UnixTime
{
private static readonly DateTime UNIX_EPOCH = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
/*===========================================================================*/
/**
* 現在時刻からUnixTimeを計算する.
*
* @return UnixTime.
*/
View Boxstarter.md

Windowsでも開発環境を一瞬で構築したい!

未開封のWindows PCと一緒に手渡された環境構築マニュアル、1つ1つ手作業で進めるだけで初日が終わってしまった、そんな時間の無駄を省く為のドキュメント。

コマンドプロンプトを起動

WindowsRを同時に押して、cmdと入力、Enterを押下

chocolateyのインストール

@23maverick23
23maverick23 / font_awesome.rb
Last active Oct 23, 2018
Jekyll: Font Awesome icons Liquid tag
View font_awesome.rb
##
# The MIT License (MIT)
#
# Copyright (c) 2014 Ryan Morrissey
#
# 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 permit persons to whom the Software is
View gist:6696152
function! s:separate_defenition_to_each_filetypes(ft_dictionary) "{{{
let result = {}
for [filetypes, value] in items(a:ft_dictionary)
for ft in split(filetypes, ",")
if !has_key(result, ft)
let result[ft] = []
endif
call extend(result[ft], copy(value))
@jasonmadigan
jasonmadigan / 404_finder.rb
Created Aug 24, 2012
404 Finder - Simple Ruby site crawler, finds 404s
View 404_finder.rb
#!/usr/bin/env ruby
# Simple 404 finder
require 'rubygems'
require 'anemone'
url = ARGV[0]
if url.nil?
@them0nk
them0nk / rspec_rails_cheetsheet.rb
Created Mar 23, 2012
Rspec Rails cheatsheet (include capybara matchers)
View rspec_rails_cheetsheet.rb
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
@benjamincharity
benjamincharity / Local Fallback for jQuery and Modernizr
Created Jan 6, 2012
Include jQuery and Modernizr from a CDN and add local fallbacks in case the CDN fails. Versions written in HTML and HAML.
View Local Fallback for jQuery and Modernizr
HTML
=====
<script type='text/javascript'>
window.jQuery || document.write('<script src="js/jquery-1.7.1.js">\x3C/script>')
</script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.0.6/modernizr.min.js' type='text/javascript'></script>
<script type='text/javascript'>
window.Modernizr || document.write('<script src="js/modernizr-2.0.6.js">\x3C/script>')
</script>
@pathawks
pathawks / meta.html
Last active Dec 19, 2018
Open Graph for Jekyll
View meta.html
{% if include.content %}
<meta property="{{ include.property }}" content="{{ include.content }}" />
{% endif %}
You can’t perform that action at this time.