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!
\
### | |
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' |
#!/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 |
#!/usr/bin/env python | |
""" | |
backup_dotfiles.py | |
Copies dotfiles over (.zshrc, .screenrc, etc.) to a backup dir | |
and syncs them with github. | |
""" | |
import argparse |
#!/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): |
#!/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 |
#!/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 |
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.
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.
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.
- 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
- Chrome - Tampermonkey
- Safari - GreaseKit
#!/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 |