Skip to content

Instantly share code, notes, and snippets.

View mimiflynn's full-sized avatar

Mimi Flynn mimiflynn

View GitHub Profile
-- By Richard Kulesus, 2009. Released without license!
-- Use this for whatever!
-- I seriously despise code authors who copyright tiny bits of obvious code
-- like it's some great treasure. This is small and simple, and if it saves
-- the next guy some time and trouble coding applescript I'll feel good!
--
-- Quickly change all the hot-corners to do what you want.
-- Particularly useful for presentations and full-screen games.
-- Customize the activity of each hot-corner with "all windows/application windows/dashboard/disable screen saver/none/show desktop/show spaces/sleep display/start screen saver"
-- The MODIFIERS are the keys which can be used to supplement hot-corner activation.

Example of a JS constructor

function Cuboid(x,y,z){
  this.x = x;
	this.y = y;
	this.z = z;
	this.area = function(){
		var area = this.x * this.y;
 return area;
@mimiflynn
mimiflynn / senchatouch.md
Last active December 20, 2015 23:48
Notes from adventures with sencha touch

Sencha Touch

Project Variables

site constants (or statics) can be included in the application via requires:[] in Ext.application({})

Ext.application({
 name: 'SenchaMobile'
@mimiflynn
mimiflynn / vim.md
Last active December 20, 2015 23:58
Vim!

Vim notes

Revert from last save

:e!

Refresh Command-T buffer

:CommandTFlush

@mimiflynn
mimiflynn / nyc.md
Created September 10, 2013 12:37
Things to do in NYC
@mimiflynn
mimiflynn / roadtrip.md
Last active December 31, 2015 18:38
Pack list for travel by car

Road Trip Pack List

Car Specific

  • bluetooth reciever
  • phone charger

Misc

  • guitar
#!/bin/bash
# GUI-related packages
pkgs="
xserver-xorg-video-fbdev
xserver-xorg xinit
gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa
gstreamer1.0-libav
epiphany-browser
@mimiflynn
mimiflynn / view-utils.js
Created March 25, 2016 19:23
various view utilities in ES6
const updateActive = (node) => {
// remove active class from all items
Array.prototype.forEach.call(node.parentNode.children, (e) => {
e.className = e.className.split(' active').join('');
});
// add active class to correct item
node.className = node.className + ' active';
}

Keybase proof

I hereby claim:

  • I am mimiflynn on github.
  • I am mimiflynn (https://keybase.io/mimiflynn) on keybase.
  • I have a public key whose fingerprint is 0BEC 6013 5335 5184 4466 36C7 4F5E D03D C99A 19CD

To claim this, I am signing this object:

@mimiflynn
mimiflynn / port.md
Last active September 14, 2016 15:36
What process is using my port?

Find that process thats using the port you want:

lsof -i :4000

If you don't care and just want to kill it:

sudo fuser -k 80/tcp