Skip to content

Instantly share code, notes, and snippets.

View mimiflynn's full-sized avatar

Mimi Flynn mimiflynn

View GitHub Profile
@mimiflynn
mimiflynn / AffixWrapper.jsx
Last active January 17, 2017 21:03 — forked from julianocomg/AffixWrapper.jsx
A simple affix React component.
/**
* @author Juliano Castilho <julianocomg@gmail.com>
* ES6 conversion by mimi.flynn@effectiveui.com
*/
import React from 'react';
import ClassNames from 'classnames';
class AffixWrapper extends React.Component {
constructor() {
@mimiflynn
mimiflynn / ejabberd.md
Last active August 29, 2015 14:23
How to make your own chat server with web interface
@mimiflynn
mimiflynn / params.js
Created May 19, 2015 18:45
Quick params parser tool
#!/usr/bin/env node
var Qs = require('qs'),
params = 'params=goHere',
parse = Qs.parse(params);
console.log(parse);
@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
@mimiflynn
mimiflynn / Preferences.sublime-settings
Last active January 11, 2017 20:52
Current Sublime Settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
"translate_tabs_to_spaces": true,
@mimiflynn
mimiflynn / nodeGrowlFun.js
Last active August 29, 2015 14:05
Fun little test script to play around with using nodejs as a command line utility
#!/usr/bin/env node
console.log('this is a growl test script to play with node and growl');
if (process.argv[3]) {
// how to grab arguments from the command line
console.log('The arguments are: ', process.argv);
} else {
console.log('No arguments. Try running growlfun with some arguments');
}
@mimiflynn
mimiflynn / server.js
Created June 17, 2014 14:23
Node http server for dev
# nodejs http server
```javascript
var http = require('http');
var path = require('path');
var url = require('url');
var fs = require('fs');
var port = 4020;
var extensions = {
# pip should only run in when virtualenv is currently activated
export PIP_REQUIRE_VIRTUALENV=true
# cache pip-installed packages to avoid re-downloading
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
alias profile='vim ~/.bash_profile'
alias rehash='source ~/.bash_profile'
alias show='defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder'
@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