This little word quiz lets you learn alias commands for your shell. Right now it only contains the alias defined by the "git" - plugin of oh-my-zsh.
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
import turtle | |
import random | |
# setup the window with a background colour | |
wn = turtle.Screen() | |
wn.bgcolor("#EFECCA") | |
wn.setup(width=250, height=250) | |
# assign a name to your turtle | |
turtle = turtle.Turtle() |
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
import turtle | |
def drawTriangle(points,color,myTurtle): | |
myTurtle.fillcolor(color) | |
myTurtle.up() | |
myTurtle.goto(points[0][0],points[0][1]) | |
myTurtle.down() | |
myTurtle.begin_fill() | |
myTurtle.goto(points[1][0],points[1][1]) | |
myTurtle.goto(points[2][0],points[2][1]) |
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
# cd | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias cd..='cd ..' | |
alias cdv='cdvirtualenv' | |
alias vhost='cd /etc/apache2/vhosts.d/' | |
function cdl { cd $1; ls;} # Change and list directory | |
function cdls { cd $1; clear; ls;} # Change and list directory on clear screen | |
alias nocomment='sed -i.bak "/^\#/d;/^ *$/d"' |
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/sh | |
STARTPAGE=1 # set to pagenumber of the first page of PDF you wish to convert | |
ENDPAGE=86 # set to pagenumber of the last page of PDF you wish to convert | |
SOURCE=book.pdf # set to the file name of the PDF | |
OUTPUT=book.txt # set to the final output file | |
RESOLUTION=600 # set to the resolution the scanner used (the higher, the better) | |
touch $OUTPUT | |
for i in `seq $STARTPAGE $ENDPAGE`; do | |
convert -monochrome -density $RESOLUTION $SOURCE\[$(($i - 1 ))\] page.tif |
Interesting data sets:
Einwohnerinnen und Einwohner in Berlin in LOR-Planungsräumen nach Wohndauer am 31.12.2014
- How long are people living in an area? The data set provides the percentages of people living less the 5 years, between 5 years and 10 years, more then 10 years in an area. We expect areas with a higher percentage of people living there for a shorter time is more suited for parties!
- also included in this data set: people younger than 5 or 10 years. So we have an indicator if there are a lot of children
- the location is encoded in a number, which is resolved in this document: http://www.stadtentwicklung.berlin.de/planen/basisdaten_stadtentwicklung/lor/download/LOR-Schluesselsystematik.xls
- After resolving the location key, we have a string saying, where it is. That still needs to be resolved to a map. Or we take info from the api as key.
data: https://www.statistik-berlin-brandenburg.de/opendata/Beschreibung_Wohndauer_Lage_Datenpool.pdf

taken from here:
http://blogs.bu.edu/mhirsch/2014/11/getting-started-with-intel-edison/
http://blogs.bu.edu/mhirsch/2014/11/installing-python-pip-on-intel-edison/
$ cat /etc/opkg/base-feeds.conf
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
<div class="noembed-embed-inner noembed-flickr"> | |
<a data-flickr-embed="true" href="https://www.flickr.com/photos/erlan/3255620919/" title="derFreitag by Erlan, on Flickr"> | |
<img width="320" alt="derFreitag" src="https://noembed.com/i/https://farm4.staticflickr.com/3431/3255620919_a80244b88e_n.jpg" height="240"> | |
</a> | |
<script async src="https://embedr.flickr.com/assets/client-code.js" charset="utf-8"></script> | |
</div> |
OlderNewer