A Dashing widget for displaying the number of visitors to your website over a specified timeframe, as reported by Google Analytics
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
| import struct | |
| import sys | |
| import time | |
| import json | |
| from struct import * | |
| from twisted.web import server, resource | |
| from twisted.internet.protocol import DatagramProtocol | |
| from twisted.internet import reactor | |
| from twisted.application.internet import MulticastServer |
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
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
| // adapted from http://www.youtube.com/watch?v=qNM0k522R7o | |
| extern vec2 size; | |
| extern int samples = 5; // pixels per axis; higher = bigger glow, worse performance | |
| extern float quality = 2.5; // lower = smaller glow, better quality | |
| vec4 effect(vec4 colour, Image tex, vec2 tc, vec2 sc) | |
| { | |
| vec4 source = Texel(tex, tc); | |
| vec4 sum = vec4(0); |
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
| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
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
| /** | |
| * Clamps a number. Based on Zevan's idea: http://actionsnippet.com/?p=475 | |
| * params: val, min, max | |
| * Author: Jakub Korzeniowski | |
| * Agency: Softhis | |
| * http://www.softhis.com | |
| */ | |
| (function(){Math.clamp=function(a,b,c){return Math.max(b,Math.min(c,a));}})(); |
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
| # Modify this file accordingly for your specific requirement. | |
| # http://www.thegeekstuff.com | |
| # 1. Delete all existing rules | |
| iptables -F | |
| # 2. Set default chain policies | |
| iptables -P INPUT DROP | |
| iptables -P FORWARD DROP | |
| iptables -P OUTPUT DROP |
NewerOlder
