Skip to content

Instantly share code, notes, and snippets.

@sgcdata
sgcdata / designer.html
Created August 23, 2014 11:47
designer
<link rel="import" href="../cool-clock/cool-clock.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@vizanto
vizanto / log
Created August 23, 2014 11:29
Curl build enables manuall, but why?
building path(s) `/nix/store/wv0qz2qr7s1vk2mj1rf0n9pcv4by0yz0-curl-7.36.0'
building /nix/store/wv0qz2qr7s1vk2mj1rf0n9pcv4by0yz0-curl-7.36.0
unpacking sources
unpacking source archive /nix/store/0g85nv4zi1anx45c8x5yvavcd1wjvx0p-curl-7.36.0.tar.bz2
source root is curl-7.36.0
patching sources
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/wv0qz2qr7s1vk2mj1rf0n9pcv4by0yz0-curl-7.36.0 --with-ssl=/nix/store/n1v5rbrhvhrlvdh1r9plmy8n6mzacdnc-openssl-1.0.1i --without-libssh2
checking whether to enable maintainer-specific portions of Makefiles... no
@kyyberi
kyyberi / gist:c9a3cbf989f387021997
Created August 23, 2014 10:26
qa-lang-admin.php lisäykset
//More additions from 1.5
'moderate_title' => "Moderera",
'cancel_mailing_button' => "Avbryt mailskickning",
'category_no_sub_error' => "^q fråga/frågor i denna kategori har ingen underkategori - ^1välj underkategori^2",
'category_no_sub_to' => "Flytta frågor i ^ som saknar underkategori till:",
'category_none_error' => "^q fråga/frågor har just nu ingen kategori - ^1välj kategori^2",
'category_none_to' => "Flytta frågor som saknar kategori till:",
'characters' => "tecken",
'check_language_suffix' => " - ^1kontrollera språkfiler^2",
//Additions from 1.6.1
@MHenderson
MHenderson / moore
Created August 23, 2014 10:25
Filter Moore graphs from an input string of whitespace-delimited graphs in graph6 format.
#!/bin/bash
# Usage:
# echo `geng -qc 5` | moore.sh
#
# Note: Do not use for values greater than 6.
read g6raw
g6proc=$(echo $g6raw |
awk '{ print "\"" $1 "\"" "," }' RS=' ' ORS=' ' |
import sys
from zipfile import ZipFile
from StringIO import StringIO
from PyPDF2 import PdfFileReader, PdfFileWriter
def burst_pages_of_pdf_file(pdf_file):
zipped_output = StringIO()
with ZipFile(zipped_output, 'w') as ziparchive:
pdf_file.seek(0)
@matiaskorhonen
matiaskorhonen / kippt-pinboard.rb
Created August 23, 2014 10:20
A simple script for copying bookmarks from Kippt to Pinboard. Tries to retain as much data as possible (title, list, creation date, and notes). Works for me, might not work for you if you have > 200 clips per Kippt list.
require "kippt" # gem install kippt
require "pinboard" # gem install pinboard
kippt = Kippt::kippt.new(username: "matias", password: "…")
pinboard = Pinboard::kippt.new(username: "matias", password: "…")
lists = kippt.lists.fetch
counter = 0