Skip to content

Instantly share code, notes, and snippets.

@jcheng31
jcheng31 / completed_tasks.rb
Last active February 23, 2017 07:11
Given an Asana task CSV, output a week-by-week breakdown of completed tasks for a particular year.
require 'csv'
require 'date'
def print_usage_and_exit
puts 'Usage: ruby completed_tasks.rb PATH_TO_ASANA_CSV YEAR_TO_PROCESS'
exit
end
def parse_argruments
arguments = ARGV

Keybase proof

I hereby claim:

  • I am jcheng31 on github.
  • I am ayulin (https://keybase.io/ayulin) on keybase.
  • I have a public key ASCDpsfb3CCVJ3VAQuOt5QcQtgGvcHfLEcG1_lpwecbDMgo

To claim this, I am signing this object:

@jcheng31
jcheng31 / Boxstarter (Family PC)
Created March 21, 2015 02:54
Boxstarter script for family computers
Install-WindowsUpdate
cinst avirafreeantivirus
cinst firefox
cinst spotify
cinst jre8
cinst adobereader
cinst malwarebytes
cinst office365homepremium
cinst skype
@jcheng31
jcheng31 / Personal Boxstarter
Last active August 29, 2015 14:15
Boxstarter script for personal systems
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
cinst firefox-dev -Pre
cinst sublimetext3
cinst git
cinst poshgit
cinst python2
cinst nodejs
cinst pscx
cinst psget
@jcheng31
jcheng31 / Marginator.ahk
Last active February 20, 2024 23:45
An AutoHotkey script for widescreen, high-resolution monitors. Resizes the active window to be 75% of the screen's width (and 100% of its height, taskbar excluded) and centres it. Triggered by pressing Win+Shift+Up. Great for websites that don't nicely centre their content. Win+Shift+C now centres the active window without resizing it.
; When Win+Shift+Up is pressed, resize the active window to be 75% of the screen width
; and centre it. Useful for widescreen resolutions >= 1080p, but uses the resolution
; of the primary monitor.
#+Up::
SysGet, BoundingCoordinates, MonitorWorkArea
ResolutionWidth := BoundingCoordinatesRight - BoundingCoordinatesLeft
ResolutionHeight := BoundingCoordinatesBottom - BoundingCoordinatesTop