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/env python | |
# -*- coding: utf-8 -*- | |
# Usage: ./tmdb_scrape.py <movie title> | |
# | |
# A scraper à la MediaElch for XBMC. | |
# | |
# Searches for the given movie, retrieves the movie information from TMDb (only | |
# user ratings are retrieved from IMDb) and saves it to the .nfo file. | |
# Additionally a movie poster (best rated), a backdrop (also best rated) and |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Programmatic Change of Domain/Range and Zoom/Pan</title> | |
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.1/themes/black-tie/jquery-ui.css"> | |
<style> | |
html, body { | |
margin: 1em; | |
} |
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 | |
# | |
# settings | |
# | |
LANGUAGE=DE | |
# | |
# script |
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(table) { | |
db[table].find().forEach(function(x) { | |
var update = { $set: {}, $unset: { value: '' } } | |
for (var k in x.value) | |
update.$set[k] = x.value[k] | |
db[table].update({_id: x._id}, update) | |
}) | |
} |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
shape-rendering: crispEdges; | |
} | |
.grid line { | |
stroke: #DEDEDE; |
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/env python | |
import feedparser, re, urllib2, os, sys | |
CACHEDIR = os.path.join(os.path.split(os.path.realpath(__file__))[0], 'cache') | |
VIDEOFEEDURL = 'http://feeds.4players.de/Allgemein/videos/-/rss.xml' | |
def formatted(s): | |
return re.sub(u'[^\w]+', u'-', s.strip(), 0, re.UNICODE).lower() | |
print '#EXTM3U' |
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 Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Time | |
currentTime : Signal Time.Time | |
currentTime = Time.every Time.second | |
main = Signal.map2 | |
(\time ls -> |
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 Time | |
import Random | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
-- MODEL |
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 Char | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
chars : Char -> Char -> List Char | |
chars x y = | |
let | |
a = Char.toCode x | |
b = Char.toCode y | |
nums = [a .. b] |
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 Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import StartApp | |
-- MODEL | |
type alias Image = | |
{ title : String |
OlderNewer