This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import iso8601 | |
from datetime import datetime | |
from lesscss import LessCSS | |
# Defaults | |
page = {} | |
pages = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import urllib | |
import sys | |
import json | |
import re | |
SP_REGEX = re.compile('^http://[\S]+/track/([\S]+)') | |
SP_LOOKUP_BASEURL = 'http://ws.spotify.com/lookup/1/.json?uri=spotify:track:%s' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SPOTIFYCMD="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." | |
function spotify_oper { | |
${SPOTIFYCMD}$1 | |
} | |
case $1 in | |
"play") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mkBox() { | |
var box = {values: [], reads: []}; | |
box.enq = function(value) { | |
box.values.push(value); | |
if (box.reads.length > 0) { | |
box.reads.shift().resolve(box.values.shift()); | |
} | |
return box; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package shardaus | |
import akka.actor._ | |
import scalaz._ | |
import Scalaz._ | |
object ActorSequence { | |
type SequenceProp = ActorRef => Props |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package striimaus | |
import java.util.Properties | |
import akka.actor._ | |
import akka.persistence.{Persistence, PersistentActor, PersistentView} | |
import com.typesafe.config.{Config, ConfigFactory} | |
import kafka.consumer._ | |
import kafka.producer.{KeyedMessage, Producer, ProducerConfig} | |
import kafka.serializer.StringDecoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ainakin.kerran | |
import akka.actor._ | |
import akka.persistence.{AtLeastOnceDelivery, PersistentActor} | |
import com.typesafe.config.ConfigFactory | |
import scala.concurrent.duration._ | |
object AinakinKerran { | |
def start(): Unit = { | |
val as = ActorSystem("AinakinKerran", ConfigFactory.load("common")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package virta.dekoodaus | |
import java.nio.charset.Charset | |
import java.util.concurrent.Executors | |
import scodec.Codec | |
import scodec.bits.BitVector | |
import scodec.codecs._ | |
import scodec.stream._ | |
import scodec.stream.decode.StreamDecoder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
function xdokeepassx { | |
xdotool search --maxdepth 3 --classname keepassx $@ | |
} | |
function show_keepassx { | |
local desktop="`xdotool get_desktop`" | |
xdokeepassx \ | |
set_desktop_for_window %@ $desktop \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
LO_PROFILE_DIR="/tmp/LO_conversions" | |
libreoffice \ | |
"-env:UserInstallation=file://$LO_PROFILE_DIR" \ | |
--headless --invisible \ | |
--convert-to csv *.ods \ | |
--outdir csv |
OlderNewer