This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # This script lets you initalize a new repo on github | |
| # from the command line | |
| # All you need is a github user and a password | |
| # 11. sep 2013 @ Svenardo | |
| # License: CC0 1.0 Universal (CC0 1.0) | |
| import os | |
| import subprocess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/opt/local/bin/python2.7 | |
| __author__ = 'svenanders' | |
| import sys | |
| import BaseHTTPServer | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| ''' | |
| >>> startserver 8000 | |
| Serving HTTP on 127.0.0.1 port 8000 ... | |
| ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @name limitFromTo | |
| * @by Sven Anders Robbestad, 2013 | |
| * @license CC0 1.0 Universal (CC0 1.0) | |
| * @description | |
| * Limit From-To filter for AngularJS. | |
| * Creates a new array or string containing only a specified number of elements with an extra | |
| * parameter specifying the starting point.. | |
| * The elements are taken from either the beginning or the end of the source array or string, as | |
| * specified by the value and sign (positive or negative) of `limit`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TODO List | |
| ========= | |
| 1.5: | |
| - Add a configuration file for nopaste-it with predefined values. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add this config | |
| $ heroku config:add LD_LIBRARY_PATH=/app/php/ext:/app/apache/lib | |
| # Login to Heroku CLI | |
| $ heroku run bash | |
| # The second argument here is the path to your script | |
| ~ $ ~/php/bin/php -f ~/www/index.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*global ig*/ | |
| ig.module( | |
| 'plugins.persistence.localstorage' | |
| ).requires( | |
| 'impact.game' | |
| ).defines(function () { | |
| 'use strict'; | |
| ig.PersistenceLocalStorage = ig.Class.extend({ | |
| /** | |
| * Initialize Persistence as localStorage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| i=1 | |
| for f in orig/* | |
| do | |
| cp "$f" ./app/effekter$i@2x.png | |
| # converts to 300x300 | |
| convert "$f" -resize 50% ./app/effekter$i.png | |
| convert "$f" -resize 100x ./app/_effekter$i.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| "use strict"; | |
| })(); | |
| var metaGridNs = metaGridNs || {}; | |
| (function () { | |
| var options = { | |
| placeholder: 'body', | |
| id: 'divGrid', // id for the grid container |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for f in *.jpg; do convert $f -resize 800x lores/$f; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a target="_blank" href="https://twitter.com/intent/tweet?text=YOUR-TITLE&url=YOUR-URL&via=TWITTER-HANDLE">Tweet</a> | |
| <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=YOUR-URL">Share on Facebook</a> | |
| <a target="_blank" href="https://plus.google.com/share?url=YOUR-URL">Plus on Google+</a> | |
| <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=YOUR-URL&title=YOUR-TITLE&summary=YOUR-SUMMARY&source=YOUR-URL">Share on LinkedIn</a> | |
| <a target="_blank" href="https://pinterest.com/pin/create/button/?url=YOUR-URL&description=YOUR-DESCRIPTION&media=YOUR-IMAGE-SRC">Pin on Pinterest</a> |