DelaydJobで起動用の bin/delayed_job
を引数 run
でフォアグラウンド起動すると binding.pry の箇所で止まるが入力できないのでそのメモ
bin/rails runner "Delayed::Worker.new.start"
でワーカを立ち上げると pry がきちんと使える
// Simple function to add a menu option to the spreadsheet "Export", for saving a PDF of the spreadsheet directly to Google Drive. | |
// The exported file will be named: SheetName and saved in the same folder as the spreadsheet. | |
// To change the filename, just set pdfName inside generatePdf() to something else. | |
// Running this, sends the currently open sheet, as a PDF attachment | |
function onOpen() { | |
var submenu = [{name:"Save PDF", functionName:"generatePdf"}]; | |
SpreadsheetApp.getActiveSpreadsheet().addMenu('Export', submenu); | |
} |
DelaydJobで起動用の bin/delayed_job
を引数 run
でフォアグラウンド起動すると binding.pry の箇所で止まるが入力できないのでそのメモ
bin/rails runner "Delayed::Worker.new.start"
でワーカを立ち上げると pry がきちんと使える
'use strict'; | |
function getInstance(consumer_key, consumer_secret) { | |
return new TwitterWebService_(consumer_key, consumer_secret); | |
} | |
var TwitterWebService_ = function (consumer_key, consumer_secret) { | |
this.consumer_key = consumer_key; | |
this.consumer_secret = consumer_secret; | |
} |
;;; runs eslint --fix on the current file after save | |
;;; alpha quality -- use at your own risk | |
(defun eslint-fix-file () | |
(interactive) | |
(message "eslint --fixing the file" (buffer-file-name)) | |
(shell-command (concat "eslint --fix " (buffer-file-name)))) | |
(defun eslint-fix-file-and-revert () | |
(interactive) |
EMOJI CHEAT SHEET
Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
People
😄
# lib/tasks/db.rake | |
namespace :db do | |
desc "Dumps the database to db/APP_NAME.dump" | |
task :dump => :environment do | |
cmd = nil | |
with_config do |app, host, db, user| | |
cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
end | |
puts cmd |
;;; iterm.el - Send text to a running iTerm instance | |
(require 'pcase) | |
(require 'thingatpt) | |
;; To match SublimeText's key binding: | |
;; (global-set-key (kbd "<C-return>") 'iterm-send-text) | |
(defvar iterm-default-thing 'line | |
"The \"thing\" to send if no region is active. |
tell application "Chrome" to tell the active tab of its first window | |
reload | |
end tell |
NOTICE: This is just a draft of Skinny framework introduction (written in Japanese for now). English version will be published soon.
https://github.com/seratch/skinny-framework
Skinny Framework は Scala のフルスタックな Web アプリケーション開発フレームワークです。2014/03 を目処に最初の安定バージョン 1.0.0 をリリースするべく精力的に開発しています。(追記: 2014/03/28 に 1.0.0 がリリースされました)
# Enable syntax-highlighting in less. | |
# Last tested on CentOS 6.3. | |
# | |
# First, add these two lines to ~/.bashrc | |
# export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" | |
# export LESS=" -R " | |
sudo yum -y install boost boost-devel ctags | |
wget http://springdale.math.ias.edu/data/puias/unsupported/6/x86_64/source-highlight-3.1.6-3.puias6.x86_64.rpm |