[ Launch: GISTEMP Animated Temperature Visualization ] 7c562a1228cfa14403ce948dad5387f5 by loleg
This file contains hidden or 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
lib.rb:122: | |
when :archlinux | |
installed = `pacman -Q`.split("\n") | |
if !installed.member?(package) | |
sh "sudo pacman -S #{package}" | |
end | |
distros.rb:74: |
This file contains hidden or 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
Symphony Fatal Error: Could not find Event login. If it was provided by an Extension, ensure that it is installed, and enabled. | |
An error occurred in /home/httpd/vhosts/optident.ch/httpdocs/symphony/lib/toolkit/class.eventmanager.php around line 175 | |
170 public static function create($handle, array $env = null){ | |
171 $classname = self::__getClassName($handle); | |
172 $path = self::__getDriverPath($handle); | |
173 | |
174 if(!is_file($path)){ | |
175 throw new Exception( |
This file contains hidden or 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 | |
# | |
# Download images from a Wikimedia Commons category | |
# | |
# Highest preview resolution and metadata in XML format will be saved in subfolders. | |
# Usage: execute this script on a Linux command line, providing the full URL to the category page. | |
# | |
# Shell tools required for this script: wget sed grep | |
# |
This file contains hidden or 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
// Encapsulate script code | |
(function($) { | |
// Select all images in 'ad' articles | |
$("a.section-ad.layoutbgimage, article.ad img.image-link").each(function() { | |
asBgImage = typeof $(this).attr('src') === "undefined"; | |
// Obtain current url(..) path to the image | |
u = asBgImage ? this.style.backgroundImage : this.src; | |
// Apply additional criteria to ensure target crop format | |
if (u.indexOf('/cache/')<0 || u.indexOf('.gif')<0) return; |
This file contains hidden or 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
from picamera.array import PiRGBArray | |
from picamera import PiCamera | |
import time | |
import sys | |
import cv2 | |
import zbar | |
import Image | |
# Debug mode | |
DEBUG = False |
This file contains hidden or 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
This is gist. | |
There are many like it, but this one is mine. | |
It is my life. | |
I must master it as I must master my life. | |
Without me gist is useless. | |
Without gist, I am useless. |
I hereby claim:
- I am loleg on github.
- I am loleg (https://keybase.io/loleg) on keybase.
- I have a public key whose fingerprint is 4510 45E3 0B29 B969 7E95 BB6A EA91 3D83 7287 B56A
To claim this, I am signing this object:
Previously...
Gemeinden in der Schweiz - ersten Überblick zu den Daten - Fragen: Hat mit dem Einlesen alles geklappt wie erwartet? Sind die Daten so kodiert, wie Sie es erwarten? Stimmen die Datenformate der Variablen? Gibt es fehlende Werte und wie sind diese kodiert?
define: loleg
This file contains hidden or 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
for dir in `ls -d */`; | |
do | |
cd $dir/docs | |
echo Total lines in ${dir%%/}: | |
find . -type f -exec cat {} + | wc -l | |
echo References of ${dir%%/}: | |
grep -ori ${dir%%/} * | wc -l | |
cd .. && cd .. | |
done |
OlderNewer