- Riesen-datenverarbeitungs- und utility-Bibliothek
- Wenig Fokus auf bestimmte Technologie (SVG, DOM, …), aber ein paar SVG-Helfer (z.B. Achsen). Auch Zusammenarbeit mit Canvas möglich
- Viele viele Beispiele auf http://bl.ocks.org/mbostock
- Beliebt
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 python3 | |
""" | |
Repeatedly runs a command and checks its output via a Python regex, | |
displaying a progress bar in KDE’s notification area. | |
The regex must have the named groups “i” and “max”, which determine the achieved progress. | |
""" | |
from PyQt4.QtCore import QObject, QTimer |
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
#![feature(macro_rules)] | |
use std::fmt; | |
trait Element {} | |
macro_rules! Elem( | |
($name:ident { $($element:ident: $ty:ty),* }) => ( | |
struct $name { | |
$( |
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
_name=breeze | |
pkgname=xcursor-breeze | |
pkgver=5.1.0 | |
pkgrel=1 | |
pkgdesc="A really awesome part of kde5 cursor themes" | |
arch=('any') | |
url="https://projects.kde.org/projects/kde/workspace/$_name/repository/show/cursors" | |
license=('GPL') | |
depends=('libxcursor') | |
source=("git://anongit.kde.org/$_name") |
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 | |
#usage: ./plasmoid-tempinstall-run.sh plasmoidname | |
export QML2_IMPORT_PATH="$HOME/.local/share/qml" | |
myplasmoid=$1 | |
mysopath="$QML2_IMPORT_PATH/org/kde/plasma/private/$myplasmoid" | |
if [[ -d "$HOME/.local/share/plasma/plasmoids/org.kde.plasma.$myplasmoid" ]]; then | |
plasmapkg2 -u ./package |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
helpgrep = function(pattern, topic) { | |
helpfile = utils:::.getHelpFile(do.call(help, list(topic))) | |
temp = tools::Rd2txt(helpfile, out = tempfile('Rtxt')) | |
str = readChar(temp, file.info(temp)$size) | |
unlink(temp) | |
lins = unlist(strsplit(str, '\n')) | |
lins[grep(pattern, lins)] | |
} |
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 csv | |
from collections import Counter | |
from operator import itemgetter | |
from matplotlib import rcParams | |
import matplotlib.pyplot as plt | |
rcParams.update({'figure.autolayout': True}) | |
answers_2013 = {"written_python2": (4660, 119), |
code python
will this work:
def foo(bar):
return baz
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
// ==UserScript== | |
// @name Reddit stylesheet editor | |
// @namespace flying-sheep | |
// @description CodeMirror-based stylesheet editor for reddit mods | |
// @include http://www.reddit.com/r/*/about/stylesheet/ | |
// @version 1 | |
// @require https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.0.0/codemirror.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.0.0/addon/hint/show-hint.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.0.0/mode/css/css.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.0.0/addon/hint/css-hint.js |