Yet another framework syndrome
| Name | Date | URL | Stars |
|---|---|---|---|
| Jake | April 2010 | https://github.com/mde/jake | 1000 |
| Brunch | January 2011 | http://brunch.io/ | 3882 |
Yet another framework syndrome
| Name | Date | URL | Stars |
|---|---|---|---|
| Jake | April 2010 | https://github.com/mde/jake | 1000 |
| Brunch | January 2011 | http://brunch.io/ | 3882 |
| #!/usr/bin/ruby | |
| # SIFTTTER 1.5: An IFTTT-to-Day One Logger by Craig Eley 2014 <http://craigeley.com> | |
| # Based on tp-dailylog.rb by Brett Terpstra 2012 <http://brettterpstra.com> | |
| # Multiple Date Function by Paul Hayes 2014 <http://paulrhayes.com> | |
| # | |
| # Notes: | |
| # * Uses `mdfind` to locate a specific folder of IFTTT-generated text files changed in the last day | |
| # * The location of your folder should be hardcoded in line 67, and the location of your Day One in line 66 | |
| # * Scans leading timestamps in each line matching the selected dates | |
| # * Does not alter text files in any way |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrcThis is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.
Here are the required steps to create a command:
Create a new Gist with a command.js and command.json file, or simply fork this one.
Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.
Add some metadata to the command.json file:
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
Installs ruby-2.0.0-p0 on ubuntu via checkinstall so it's in your package manager and you can remove it.
Quick install:
curl -L https://gist.github.com/ngauthier/5039249/raw/1868bf4714052b40e2bb7fdf3f40fbeb5d730bca/ruby-2-install-ubuntu.sh | bash -s
| <!-- Include the following CSS and Javascript in your page --> | |
| <link href="https://coderbits.com/content/widget/coderbits.css" media="all" rel="stylesheet" type="text/css"> | |
| <script src="https://coderbits.com/content/widget/coderbits.js"></script> | |
| <!-- Place the following in the page where you want the widget to render and set your username --> | |
| <section id="coderbits" data-coderbits-username="<your username>"></section> |
| data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
| { | |
| "name": "Bit Munkey", | |
| "title": "Mascot and Waterboy", | |
| "location": "Tamarindo, Costa Rica", | |
| "website_link": "https://coderbits.com", | |
| "bio": "Born in the lush jungles of the Guanacaste region of Costa Rica, Bit Munkey enjoys surfing, scuba diving, vine swinging, and of course ... bananas!", | |
| "created": "2012-08-24T18:40:43Z", | |
| "updated": "2013-08-22T18:35:52Z", | |
| "views": 4540, | |
| "rank": 4386, |