| // 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 ใใชใชใผในใใใพใใ๏ผ

