Skip to content

Instantly share code, notes, and snippets.

View blue0513's full-sized avatar
๐Ÿคฉ
Always Happy Boy

Taiju Aoki blue0513

๐Ÿคฉ
Always Happy Boy
View GitHub Profile
@Ladicle
Ladicle / README.org
Last active July 24, 2025 05:40
Emacs Configuration 2024

Emacs Configuration 2024

https://gist.github.com/assets/1159133/5f2b8f77-c11a-41e6-a5e8-5e799100dbb3.png

@primaryobjects
primaryobjects / Code.gs
Last active January 16, 2023 16:48
Export a Google Drive spreadsheet to PDF in Google Drive in the same folder.
// 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);
}
@pocari
pocari / delayed_job_memo.md
Last active September 2, 2020 09:11
DelayedJobใฎใƒฏใƒผใ‚ซใƒผๅ†…ใงpryใ‚’ไฝฟใ†(rails delayed job worker pry)

DelaydJobใง่ตทๅ‹•็”จใฎ bin/delayed_job ใ‚’ๅผ•ๆ•ฐ run ใงใƒ•ใ‚ฉใ‚ขใ‚ฐใƒฉใ‚ฆใƒณใƒ‰่ตทๅ‹•ใ™ใ‚‹ใจ binding.pryใ€€ใฎ็ฎ‡ๆ‰€ใงๆญขใพใ‚‹ใŒๅ…ฅๅŠ›ใงใใชใ„ใฎใงใใฎใƒกใƒข

ๅ‚่€ƒ) http://stackoverflow.com/questions/18138961/how-can-i-debug-code-running-in-a-delayed-job-task-in-the-irb-console

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;
}
@ustun
ustun / eslint-auto.el
Created January 12, 2016 23:59
run eslint --fix on emacs file save
;;; 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)
@roachhd
roachhd / README.md
Last active December 4, 2025 09:59
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

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

:bowtie: ๐Ÿ˜„

@hopsoft
hopsoft / db.rake
Last active November 13, 2025 15:40
Rails rake tasks for dump & restore of PostgreSQL databases
# 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
@johnmastro
johnmastro / iterm.el
Last active September 13, 2022 14:41
Send text from Emacs to iTerm
;;; 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.
@lawrencejones
lawrencejones / refresh.applescript
Created February 9, 2014 22:21
Applescript to refresh Google Chrome
tell application "Chrome" to tell the active tab of its first window
reload
end tell
@seratch
seratch / getting_started_ja.md
Last active June 5, 2018 02:56
Skinny Framework 1.0 Introduction in Japanese

NOTICE: This is just a draft of Skinny framework introduction (written in Japanese for now). English version will be published soon.

Skinny Framework ใจใฏ

Logo

https://github.com/seratch/skinny-framework

Skinny Framework ใฏ Scala ใฎใƒ•ใƒซใ‚นใ‚ฟใƒƒใ‚ฏใช Web ใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณ้–‹็™บใƒ•ใƒฌใƒผใƒ ใƒฏใƒผใ‚ฏใงใ™ใ€‚2014/03 ใ‚’็›ฎๅ‡ฆใซๆœ€ๅˆใฎๅฎ‰ๅฎšใƒใƒผใ‚ธใƒงใƒณ 1.0.0 ใ‚’ใƒชใƒชใƒผใ‚นใ™ใ‚‹ในใ็ฒพๅŠ›็š„ใซ้–‹็™บใ—ใฆใ„ใพใ™ใ€‚๏ผˆ่ฟฝ่จ˜: 2014/03/28 ใซ 1.0.0 ใŒใƒชใƒชใƒผใ‚นใ•ใ‚Œใพใ—ใŸ๏ผ‰