Resources to help you keep up with the industry and learn new things
Development:
- Hacker News: Forum for discussing startups and technology from the ycombinator incubator
class Human | |
# Class method (a.k.a. static method) | |
def self.classification | |
'Mammal' | |
end | |
# Instance constructor | |
def initialize(first_name, last_name) |
Resources to help you keep up with the industry and learn new things
Development:
// ABOUT | |
A simple LESS (http://lesscss.org) snippet based on http://snook.ca/archives/html_and_css/font-size-with-rem | |
It doesn't do much but saves you typing things twice, allowing you to use rem as a unit for font-sizes | |
and giving a px fallback for IE | |
// MIXIN | |
.font-size(@font-size: 16){ | |
@rem: (@font-size / 10); | |
font-size: @font-size * 1px; | |
font-size: ~"@{rem}rem"; |
(function( jQuery ) { | |
var getScript = jQuery.getScript; | |
jQuery.getScript = function( resources, callback ) { | |
var // reference declaration & localization | |
length = resources.length, | |
handler = function() { counter++; }, | |
deferreds = [], |
:+1: | |
:-1: | |
:airplane: | |
:art: | |
:bear: | |
:beer: | |
:bike: | |
:bomb: | |
:book: | |
:bulb: |
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
If: | |
- you add and commit with the wrong email address in git, and | |
- your remote has a hook set up to prevent you from pushing with the bad address | |
Then you need to amend the author of your commit before push can succeed: | |
1. fix your email address in git config: | |
$ git config user.name "Your Name" |
/** | |
* This Google Sheets script keeps data in the specified column sorted any time | |
* the data changes. | |
* | |
* After much research, there wasn't an easy way to automatically keep a column | |
* sorted in Google Sheets, and creating a second sheet to act as a "view" to | |
* my primary one in order to achieve that was not an option. Instead, I | |
* created a script that watches for when a cell is edited and triggers | |
* an auto sort. | |
* |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000