Skip to content

Instantly share code, notes, and snippets.

View impronunciable's full-sized avatar

Dan Zajdband impronunciable

View GitHub Profile
run:
casperjs index.js && convert *.jpg video.mpeg && gify video.mpeg out.gif && rm *.jpg video.mpeg
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@impronunciable
impronunciable / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
@impronunciable
impronunciable / index.js
Created March 18, 2015 20:11
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var insertCSS = require('insert-css')
var domify = require('domify')
var css = "body {width: 100%;height: 100%;} .slideout-menu {position: fixed;left: 0;top: 0;bottom: 0;right: 0;z-index: 0;width: 256px;overflow-y: auto;-webkit-overflow-scrolling: touch;display: none;} .slideout-panel {position:relative;z-index: 1;} .slideout-open, .slideout-open body, .slideout-open .slideout-panel {overflow: hidden;} .slideout-open .slideout-menu {display: block;}";
var html = '<nav id="menu"><header><h2>Menu</h2></header></nav><main id="panel"><header><h2>Panel</h2></header></main>';
@impronunciable
impronunciable / chequeado.md
Created July 7, 2015 03:38
Chequeado busca Developer

Chequeado busca Developer

Chequeado es un medio digital no partidario y sin fines de lucro que se dedica a la verificación del discurso público y la promoción del acceso a la información y la apertura de datos. Chequeamos los dichos de políticos, economistas, empresarios, personas públicas, medios de comunicación y otras instituciones formadoras de opinión, y los clasificamos de “verdadero” a “falso” según su consistencia con los hechos y datos a los que se refieren. Queremos mejorar el debate público. Queremos que el debate público se base en datos y hechos, no en preferencias ideológicas, prejuicios, intereses sectoriales o la mera negligencia o superficialidad. Estamos armando un equipo de periodismo interactivo y buscamos un programador con pasión por defender el derecho a la información y para explorar nuevas formas de trabajar con datos fidedignos. El equipo estará monitoreado por HacksLabs, un programa de aceleración de proyectos de periodismo de datos, y una red de mentores internacionales.

Des

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc,char *argv[]) {
int charcount = 0;
float timecount = 0; /* number of characters seen */
FILE *in_file; /* input file */
$(document).ready(function(){
$('#s,label[for=s]').hide();
var sel_list = $('<div id="sel_list"><strong><span></span></strong><ul></ul></div>');
sel_list.find('span').text($('label[for=s]').text());
$('#s').children('option').each(function(){
sel_list.children('ul').append('<li>' + $(this).text() + '</li>');
});
$('#s').after(sel_list);
$('#peron').click(function(e){
e.preventDefault();
$('#ul1 li').each(function(){
var img = $('<img />');
img.attr('src', $(this).attr('href' );
$(this).before(img);
$(this).remove();
});
});
$('#peron').click(function(e){
e.preventDefault();
$('#ul1 li a').each(function(){
var img = $('<img />');
$(img).attr('src', $(this).attr('href'));
$(this).before(img);
$(this).remove();
});
});
'POST /api/v1/user/ HTTP/1.1\r\nContent-Type: application/json\r\nAccept: application/json\r\nContent-Length: 121\r\nHost: 127.0.0.1:8000\r\nConnection: keep-alive\r\n\r\n{"method":"facebook","method_id":"123123213123","username":"REPTARRRR","name":"Aventuras en pañales","password":"123456"}'