This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[\u2702\u2705\u2708\u2709\u270A\u270B\u270C\u270F\u2712\u2714\u2716\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753\u2754\u2755\u2757\u2764\u2795\u2796\u2797\u27A1\u27B0\u24C2\u00A9\u00AE\u203C\u2049\u2122\u2139\u2194\u2195\u2196\u2197\u2198\u2199\u21A9\u21AA\u231A\u231B\u23E9\u23EA\u23EB\u23EC\u23F0\u23F3\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FD\u25FE\u2600\u2601\u260E\u2611\u2614\u2615\u261D\u263A\u2648\u2649\u264A\u264B\u264C\u264D\u264E\u264F\u2650\u2651\u2652\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2693\u26A0\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2934\u2935\u2B05\u2B06\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|(\u0038\u20E3)|(\u0039\u20E3)|(\u0037\u20E3)|(\u0036\u20E3)|(\u0031\u20E3)|(\u0030\u20E3)|(\u0032\u20E3)|(\u0033\u20E3)|(\u0035\u20E3)|(\u0034\u20E3)|(\u0023\u20E3)|(\uD83D[\uDE01\uDE02\uDE03\uDE04\uDE05\uDE06\uDE09\uDE0A\uDE0B\uDE0C\uDE0D\uDE0F\uDE12\uDE13\uDE14\uDE16\uDE18\uDE1A\uDE1C\uDE1D\uDE1E\uDE20\uDE21\uDE22\uDE23\u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* http://apps.timwhitlock.info/emoji/tables/unicode | |
* 上記ページにまとめられているリストから正規表現文字列を作成する | |
*/ | |
function createEmojiRegExpString() { | |
var results = {single: [], multi: []}; | |
var regExpArr = []; | |
// サロゲートペアの文字を4桁の16進数に分割する | |
function unicodeFromCodePoint(codeNum) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.loader { | |
position: absolute; | |
width: 50px; height: 50px; | |
top: 50%; left: 50%; | |
margin-top: -30px; | |
margin-left: -30px; | |
border: solid 5px #808080; | |
-webkit-border-radius: 50%; | |
-moz-border-radius: 50%; | |
-o-border-radius: 50%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName www.yourhost.com | |
# !!! Be sure to point DocumentRoot to 'public'! | |
DocumentRoot /somewhere/public | |
<Directory /somewhere/public> | |
# This relaxes Apache security settings. | |
AllowOverride all | |
# MultiViews must be turned off. | |
Options -MultiViews | |
</Directory> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name '*@2x.png' | awk -F '@2x' '{print "convert " $1 "@2x.png -resize 50% " $1 ".png && pngquant 64 " $1 "*.png && mv " $1 "@2x-fs8.png " $1 "@2x.png && mv " $1 "-fs8.png " $1 ".png"}' | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :application, "environment application name" | |
set :deploy_to, '/path/to/app/environment' | |
set :rails_env, 'environment' | |
server "localhost", :app, :web, :db, :primary => true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "capistrano/ext/multistage" | |
require 'capistrano_colors' | |
require "bundler/capistrano" | |
set :stages, %w(production staging) | |
set :default_stage, "staging" | |
set :repository, "Repository URL" | |
set :scm, :subversion | |
set :scm_username, "svn_username" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream application-unicorn { | |
# Unicornのソケットを指定: | |
server unix:/tmp/unicorn_{application}.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name HOSTNAME; | |
client_max_body_size 4G; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application = 'application' | |
shared_dir = "/var/www/sites/#{application}/shared" | |
worker_processes 6 | |
# Help ensure your application will always spawn in the symlinked | |
# "current" directory that Capistrano sets up. | |
working_directory "/var/www/sites/#{application}/current" # available in 0.94.0+ | |
# listen on both a Unix domain socket and a TCP port, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @constructor | |
* @class | |
* @extend Object | |
*/ | |
function EventDispatcher() { | |
} | |
/** | |
* Eventを格納するオブジェクト |