Skip to content

Instantly share code, notes, and snippets.

@voidfiles
voidfiles / clipboards_bookmarklet.js
Created June 2, 2012 22:39
Clipboard.com's Bookmarklet
// Bookmarklet
javascript: (function(a) {
var b = a.document;
try {
a.CLIPBOARD.client.Clipper.instances["_d09a13b8af38e2f71b4f1626c07e1c42"].activate();
return
} catch(e) {}
var c = b.createElement("script"),
d = b.getElementsByTagName("head")[0],
a = a.location.protocol;
@voidfiles
voidfiles / subscriber.html
Created June 16, 2012 19:59
Simple Javascript Event Delegation
<html>
<head>
<title>Subscriber Test Page</title>
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/reset-fonts-grids/reset-fonts-grids.css">
<style type="text/css" media="screen">
body {
font-family: Myriad Pro, Helvetica, Arial;
font-size:138.5%;
}
h1 {
@voidfiles
voidfiles / main.js
Created June 21, 2013 21:20
AOL Reader Beautified Javascript
/**
* Isotope v1.5.25
* An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co
*
* Commercial use requires one-time purchase of a commercial license
* http://isotope.metafizzy.co/docs/license.html
*
* Non-commercial use is licensed under the MIT License
*
@prologic
prologic / LearnGoIn5mins.md
Last active May 5, 2024 17:05
Learn Go in ~5mins
@Emmanuerl
Emmanuerl / awk.MD
Created May 5, 2024 16:05
Backend study group AWK hands on session

The AWK CLI Tool

A step by step introduction into the AWK command, it's syntax, uses and sample use cases.

Introduction

The awk command is a column based manipulation tool that can be used for a variety of things, from reading CSVs to killing processes, literally. At the very core, AWK is based on the following awk '{expression to qualify output} {print $output expression}' Although it's a cli tool, it offers a lot of programming language paradigms such as

@voidfiles
voidfiles / adn_activitystream.json
Created August 6, 2013 22:06
Example ActivityStream output from App.net API.
{
"meta": {
"code": 200
},
"data": {
"items": [{
"generator": {
"link": "http://wedge.natestedman.com",
"name": "Wedge",
"client_id": "PDvZfuW8zhzjwU8PF9KEzFbAcTn6T67U"
@tzermias
tzermias / ip_forward.md
Last active May 5, 2024 17:03
Forward traffic from wlan0 to eth0 interface

Forward traffic from a laptop's eth0 to wlan0

###To laptop

Specify an IP address to eth0 (here 192.168.56.1)

sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0
@voidfiles
voidfiles / test_script.md
Created October 17, 2013 18:20
Test feed fetch from appengine.

Run this script line by line here, and when you make it work there it will work in pourover.

from google.appengine.api import urlfetch
resp = urlfetch.fetch('http://www.vlachbild.de/feed/', deadline=60)
print resp.content
@fdrtec
fdrtec / eclipse-atalhos.md
Created March 14, 2017 13:58
eclipse: atalhos de teclado shortcuts
@voidfiles
voidfiles / 0_reuse_code.js
Created December 14, 2013 01:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console