Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
data_uri = open("sample.png", "rb").read().encode("base64").replace("\n", "") | |
# HTML Image Element | |
img_tag = '<img alt="" src="data:image/png;base64,{0}">'.format(data_uri) | |
print img_tag | |
# CSS Background Image | |
css = 'background-image: url(data:image/png;base64,{0});'.format(data_uri) | |
print css |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#version 420 | |
uniform mat4 projection_matrix; | |
uniform mat4 model_matrix; | |
void main() | |
{ | |
int tri = gl_VertexID / 3; | |
int idx = gl_VertexID % 3; | |
int face = tri / 2; |
#!/usr/bin/env python | |
from csvkit.convert.js import json2csv | |
from collections import OrderedDict | |
from flask import Flask | |
import rethinkdb as r | |
import json, StringIO | |
config = { | |
"port": 8096, |
package main | |
import ( | |
"code.google.com/p/gcfg" | |
"fmt" | |
r "github.com/dancannon/gorethink" | |
irc "github.com/fluffle/goirc/client" | |
"log" | |
"strings" | |
) |
//usr/bin/env go run $0 "$@"; exit | |
package main | |
import ( | |
"fmt" | |
"os" | |
) | |
func main() { | |
fmt.Println("Hello world!") |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
# Development | |
cinst -y powershell | |
cinst -y githubforwindows | |
cinst -y python3 | |
cinst -y git.commandline | |
cinst -y sublimetext3 | |
# Media |
from tkinter import * | |
import asyncio | |
from functools import wraps | |
import websockets | |
def runloop(func): | |
''' | |
This decorator converts a coroutine into a function which, when called, | |
runs the underlying coroutine to completion in the asyncio event loop. | |
''' |
package main | |
import ( | |
"fmt" | |
"github.com/jinzhu/gorm" | |
_ "github.com/lib/pq" | |
) | |
func main() { |
import pyparsing as pp | |
token = pp.Word(pp.alphanums + '_-.') | |
command = pp.OneOrMore(token) | |
separators = ['1>>', '2>>', '>>', '1>', '2>', '>', '<', '||', | |
'|', '&&', '&', ';'] | |
separator = pp.oneOf(separators) |