Skip to content

Instantly share code, notes, and snippets.

const onOpen = () => {
const spreadsheet = SpreadsheetApp.getActive()
const menuItems = [
{ name: 'Prepare sheets...', functionName: 'prepareSheets_' },
{ name: 'Add new daily entry...', functionName: 'generateNewDailyEntry_' }
]
spreadsheet.addMenu('Daily Status', menuItems)
}
const dailyEntriesSheetDetails = {
@vietqhoang
vietqhoang / script.sh
Created February 10, 2016 00:31 — forked from tonylukasavage/script.sh
Move all uncommitted changes to a new branch and revert the existing branch to HEAD. "master" has uncommitted changes. You decided you'd rather make those changes in "dev_branch". Here's how to move those uncommitted changes to "dev_branch" and then revert "master" to its last commit.
# get into the master branch
git checkout master
# create a new branch for the changes and check it out
git checkout -b dev_branch
# stash the changes until we revert master
git stash
# go back to master
Verifying that +viet is my Bitcoin username. You can send me #bitcoin here: https://onename.io/viet
@vietqhoang
vietqhoang / keybase.md
Created July 14, 2014 21:47
keybase.io proof

Keybase proof

I hereby claim:

  • I am vietqhoang on github.
  • I am viet (https://keybase.io/viet) on keybase.
  • I have a public key whose fingerprint is CDEC 2F77 A2FF 3289 4185 0922 97B5 0376 71FF 8314

To claim this, I am signing this object:

@vietqhoang
vietqhoang / KanaEagleVision
Created June 26, 2013 19:13
Change font-weight for all attribute lang-ja in the document. Use with a script injector extension, such as Tampermonkey for Chrome or GreaseMonkey for Firefox.
// ==UserScript==
// @name KanaEagleVision
// @namespace http://www.wanikani.com
// @version 0.1
// @description Changes font-weight to normal for anything attributed with lang=ja. jQuery inject script from https://gist.github.com/eristoddle/4440713
// ==/UserScript==
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");