Skip to content

Instantly share code, notes, and snippets.

View feltnerm's full-sized avatar

Mark Feltner feltnerm

View GitHub Profile
@shripadk
shripadk / gist:652819
Created October 29, 2010 03:10
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'
@feltnerm
feltnerm / m2u2dir
Created April 19, 2011 05:37
Useful for Djs to not screw with their real mp3s -- versions for python 2.7 and 2.6
#!/usr/bin/env python
"""
m3u2dir.py
Copies the files found in a .m3u file
to either the current working dir or a dir
specified on the command line.
IDEAS:
automatically find .m3u in current working dir
@feltnerm
feltnerm / dotfileback
Created April 19, 2011 05:48
Backup dotfiles to github
#!/usr/bin/env python
"""
backup_dotfiles.py
Copies dotfiles over (.zshrc, .screenrc, etc.) to a backup dir
and syncs them with github.
"""
import argparse
@feltnerm
feltnerm / motivator
Created April 19, 2011 05:49
simple motivational quotes on your console.
#!/usr/bin/env python
# Every hour:
# 1. Open quotes or goals based on the one opened least frequently
# a. Return random line from file
# b. display file
import time
import random
def get_line(lines):
@feltnerm
feltnerm / the_fing_weather
Created April 19, 2011 05:51
Tell me the f*ckin weather!
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
'''
Created on Jul 16, 2010
@author: mark
'''
import sys, string, pprint
from datetime import datetime
from thefuckingweather import LocationError, get_weather, DEGREE_SYMBOL
@feltnerm
feltnerm / audinf
Created April 19, 2011 05:51
display simple tracklist info about a directory of mp3s
#!/usr/bin/env python
"""
audinf.py
Displays simple track info about a list of mp3s
"""
import sys
import os
from mutagen.easyid3 import EasyID3 as eid3
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 14, 2024 04:49
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@rnicholus
rnicholus / gist:9c02b2da9351923e4782
Last active August 29, 2015 14:01
JavaScript 101

Why?

More and more of our application code will live in the browser over time as JavaScript, and perhaps our server code will utilize the same language as well. Luckily, it's pretty easy to learn JavaScript. JavaScript is becoming more central to web applications.

With this in mind, it will be beneficial for non-developers to gain a better understanding of this language, and how it is used in the browser and on the server. We can start out simple, and work up to the level of proficiency required to aid in debugging web app issues, writing automated end-to-end tests. Perhaps you will find yourself developing a web application of your own.

Course Outline

I hope to hold 1 - 1.5 hour sessions every 2-3 weeks, depending on my schedule. Perhaps other developers can assist as well, schedule permitting.

Slack Now Playing Thing

So here's how to hack together a now playing button for Slack (until we can get some more integrations and do it a better way.

Do this

  • Use Slack in a browser
    This stuff depends on the use of browser plugins so it'd take more work for this to work in the app
  • Install a Greasemonkey plugin
  • Safari - GreaseKit
@TKIPisalegacycipher
TKIPisalegacycipher / DeleteGmusicDupes-Python35.py
Last active June 12, 2020 16:22 — forked from sckzw/README.md
Python script to find and delete duplicate tracks from Google Play Music library.
#!/usr/bin/env python
# created by shuichinet https://gist.github.com/shuichinet
# forked from https://gist.github.com/shuichinet/8159878 21 Nov 2015
# using minor edits by fcrimins https://www.reddit.com/user/fcrimins from https://www.reddit.com/r/google/comments/2xzgyv/remove_duplicate_songs_from_google_play_music/csh6mrh
# also using clever edits by Morgan Gothard https://medium.com/@mgothard
# updated for Python 3.5 by John M. Kuchta https://medium.com/@sebvance 22 Nov 2016 (hey I was busy)
# compiled by John M. Kuchta https://medium.com/@sebvance
# thanks to shuichinet, fcrimins and Mr. Gothard for their work