This list served quite some people but someone else did a better job since.
Go to https://github.com/umpirsky/country-list for a list in your language and format.
I've also compiled a list of nationalities
This list served quite some people but someone else did a better job since.
Go to https://github.com/umpirsky/country-list for a list in your language and format.
I've also compiled a list of nationalities
| <!-- Live demo : http://bl.ocks.org/1213727 --> | |
| <html> | |
| <head> | |
| <title>Un affichage de numéro vert avec Microformat et mise en forme en CSS</title> | |
| <link rel="stylesheet" media="all" href="numero_vert.css" type="text/css" /> | |
| </head> | |
| <body> | |
| <span class="vcard numerovert"> | |
| <span class="fn">Nom de la société</span> |
| innerWidth / innerHeight tests @ http://sandbox.thewikies.com/orientation/ | |
| -------------------------------------------------------------------------------- | |
| Tested (14 devices, 28 browsers): | |
| Droid 2 Global Android 2.2 | |
| iPhone 4 iOS5 (Safari, Opera Mini) | |
| Motorola Atrix Android 2.3.4 (Stock browser, Dolphin, Skyfire, Opera Mini, Firefox) | |
| Samsung Galaxy S9000 Android 2.3 (Webkit, Opera Mobile) | |
| Samsung Galaxy Y Android 2.3.5 |
| var application_root = __dirname, | |
| express = require("express"), | |
| path = require("path"), | |
| mongoose = require('mongoose'); | |
| var app = express.createServer(); | |
| // database | |
| mongoose.connect('mongodb://localhost/ecomm_database'); |
| // This is from my comment here: http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-2#comment-466561 | |
| /* | |
| * How to delete items from an Array in JavaScript, an exhaustive guide | |
| */ | |
| // DON'T use the delete operator, it leaves a hole in the array: | |
| var arr = [4, 5, 6]; | |
| delete arr[1]; // arr now: [4, undefined, 6] |
| /** | |
| * Array.indexOf Polyfill (courtesy of MDN) | |
| */ | |
| if (!Array.prototype.indexOf) { | |
| Array.prototype.indexOf = function(searchElement /*, fromIndex */ ) { | |
| if (this === null) { | |
| throw new TypeError(); | |
| } | |
| var t = new Object(this); | |
| var len = t.length >>> 0; |
generator-webapp has support for compass out of the box. However, in order to use one of my favorite features of it — sprites and the image_url helper — you have to make some adjustments to the Gruntfile.
Let's assume you use a SASS stylesheet like this one:
@import "design/*.png"| -- AppleScript -- | |
| -- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
| -- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
| -- This method is as good as its JXA counterpart. | |
| -- Webkit variants include "Safari", "Webkit", "Orion". | |
| -- Specific editions are valid, including "Safari Technology Preview". | |
| -- "Safari" Example: | |
| tell application "Safari" to return name of front document |
If you're like me you have a dir like ~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually.
Usage:
git-status [directory]This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.
| #!/usr/bin/env ruby -wKU | |
| # -*- coding: utf-8 -*- | |
| # Adapted from Brett Terpstra’s original “Markdown to Evernote” service (http://brettterpstra.com/a-better-os-x-system-service-for-evernote-notes-with-multimarkdown/) | |
| # Martin Kopischke 2011 – License: Creative Commons Attribution Share-Alike (CC BY-SA) 3.0 Unported (http://creativecommons.org/licenses/by-sa/3.0/) | |
| # Changes: – support for setting the creation date with 'Date:' MMD metadata attribute | |
| # – create only one Evernote note per (Multi)Markdown input passed (instead of one per line) | |
| # – do not choke on shell escape characters (use Tempfile instead of shell pipe for osascript) | |
| # – default to MultiMarkdown 3 executable (instead of MMD 2 Perl script) | |
| # – make smart typography processing optional (set SMARTY to 'false' to bypass processing; |