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
Resources to help you keep up with the industry and learn new things
Development:
| /** | |
| * 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. | |
| * |
| class Human | |
| # Class method (a.k.a. static method) | |
| def self.classification | |
| 'Mammal' | |
| end | |
| # Instance constructor | |
| def initialize(first_name, last_name) |
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| 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" |
| // 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"; |
| :+1: | |
| :-1: | |
| :airplane: | |
| :art: | |
| :bear: | |
| :beer: | |
| :bike: | |
| :bomb: | |
| :book: | |
| :bulb: |