Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
use Rack::Static, | |
:urls => ["/images", "/js", "/css"], | |
:root => "public" | |
# Absolute path of the root app | |
@root = File.expand_path(File.join(File.dirname(__FILE__), 'public')) | |
run lambda { |env| | |
req = Rack::Request.new(env) |
#!/usr/bin/env python | |
from sys import stdin | |
def next(a, i): | |
j = i | |
l = len(a) | |
r = i - 1 | |
while j < l and a[j]: |
#!/usr/bin/env python | |
import string | |
import sys | |
from collections import Counter | |
ALPHABET = string.ascii_lowercase | |
def main(): |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginxs | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: nginx init.d initscript for Debian Squeeze | |
# Description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server. This script \ |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
#!/bin/bash | |
# | |
# Build multiple Python versions. | |
# | |
# Author: Akeda Bagus <[email protected]> | |
# Licensed under MIT license. | |
BASE_URL=http://python.org/ftp/python/ | |
CURRENT_DIR=$(pwd) | |
# This is where all python version will be built |
#!/bin/bash | |
# | |
# Build multiple PHP versions. Inspired by | |
# http://derickrethans.nl/multiple-php-version-setup.html | |
# This script assumes you have Git and build tols installed. | |
# | |
# Author: Akeda Bagus <[email protected]> | |
# Licensed under MIT license. | |
# To reduce outgoing request, clone from |
< /lib/libpng12.so.0.44.0 | |
< /lib/libpng12.so.0 | |
< /usr/share/man/man5/png.5.gz | |
< /usr/share/man/man3/zlib.3.gz | |
< /usr/share/man/man3/libpng.3.gz | |
< /usr/share/man/man1/libpng12-config.1.gz | |
< /usr/share/man/man1/libpng-config.1.gz | |
< /usr/share/doc/libpng12-dev | |
< /usr/share/doc/libpng12-dev/examples |
> /usr/share/doc/libjpeg62 | |
> /usr/share/doc/libjpeg62/README.gz | |
> /usr/share/doc/libjpeg62/changelog.gz | |
> /usr/share/doc/libjpeg62/changelog.Debian.gz | |
> /usr/share/doc/libjpeg62/copyright | |
> /usr/share/doc/libjpeg62-dev | |
> /usr/share/doc/libjpeg62-dev/structure.doc.gz | |
> /usr/share/doc/libjpeg62-dev/libjpeg.doc.gz | |
> /usr/share/doc/libjpeg62-dev/examples | |
> /usr/share/doc/libjpeg62-dev/examples/example.c.gz |