Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
{% comment %} | |
This snippet displays sizes | |
Usage: | |
{% include 'show-sizes' with product %} | |
Return: | |
no return | |
Required: |
<div> | |
<label for="sort-by">Sort by</label> | |
<select id="sort-by"> | |
<option value="manual">Featured</option> | |
<option value="price-ascending">Price: Low to High</option> | |
<option value="price-descending">Price: High to Low</option> | |
<option value="title-ascending">A-Z</option> | |
<option value="title-descending">Z-A</option> | |
<option value="created-ascending">Oldest to Newest</option> | |
<option value="created-descending">Newest to Oldest</option> |
/* | |
Author: Rich Atkinson [email protected] | |
*/ | |
// Provides a String.render() method. Similar to String.format() (in c), | |
// except it takes a literal object of name / value pairs, like context in Django. | |
// eg: "Hello {name} welcome to {list}".format({name: 'Joe', list: 'Spam'}) | |
if (!String.prototype.render) { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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
<html> | |
<head> | |
</head> | |
<script type="text/javascript"> | |
function makeShort() | |
{ | |
var longUrl=document.getElementById("longurl").value; | |
var request = gapi.client.urlshortener.url.insert({ | |
'resource': { | |
'longUrl': longUrl |
/* | |
* Layers to SVG - layers_export.jsx | |
* @version 0.1 | |
* Improved PageItem selection, which fixed centering | |
* | |
* @author Anton Ball | |
* Exports all layers to SVG Files | |
* I didn't want every layer in the SVG file so it first creates a new document | |
* and one by one copies each layer to that new document while exporting it out | |
* as an SVG. |
On MacOS X Mountain Lion, VoiceOver 6 reads "Breadcrumbs with 3 items, navigation. Link, Home. Link, Library. Visited link, Data."
On Windows XP, Windows Eyes 7.5.4.1 reads "Two links. Link, Home. Link, Library. Visited Link, Data."
On Windows XP, NVDA 2012.3 reads "Navigation landmark. Link, Home. Link, Library. Visited Link, Data."
""" | |
Exports Issues from a specified repository to a CSV file | |
Uses basic authentication (Github username + password) to retrieve Issues | |
from a repository that username has access to. Supports Github API v3. | |
""" | |
import csv | |
import requests |
!function ($) { | |
"use strict"; // jshint ;_; | |
var BGCover = function (element, options) { | |
this.$element = $(element); | |
this.options = options; | |
this.init(); | |
} |