a CSS Snippetcollection
This Snippetcollection contains a few nice ways to use CSS3 to get astounding RETRO Gaming Symbols.
include the styles.css file in your HTML-Head just like that:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# cc 2012 by Nils Koppelmann | |
import os | |
bold = "\033[1m" #declares the string as bold | |
reset = "\033[0;0m" #resets the string to normal |
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
canvas { border: 1px solid gray; } | |
</style> | |
<script> | |
function draw() { | |
var canvas = document.getElementById('house'); |
rm .*.sw* | |
git rm -r --cache ./*/*.sw* |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
sub nl2br { | |
my $t = shift || return; | |
$t =~ s/([\r])/<br>/g; | |
return $t; | |
} |
#!/bin/bash | |
mplayer -loop 0 "$1" |
#!/bin/bash | |
while getopts "" opt; do | |
case $opt in | |
\?) | |
printf >&2 \ | |
"invalid option: -$OPTARG\n | |
usage: toMp3 [-t type]\n" | |
exit 1;; | |
:) | |
echo >&2 \ |
#!/bin/bash | |
echo "Layouts:" | |
echo "1) x - +" | |
echo "2) x + -" | |
echo "3) - x +" | |
echo "4) - + x" | |
echo "5) + - x" | |
echo "6) + x -" | |
## asking for choice | |
read -p "Which layout do you want? " "entry" |
#!/bin/sh | |
# usage: ./pwdgen.sh [keysize] | |
keyfile=file | |
ssh-keygen -t rsa -f $keyfile -b 1024 -N '' -v &> /dev/null | |
totallinenumbers=$(grep -c ".*" $keyfile) | |
linenumber=$(echo $(($RANDOM % $(expr $totallinenumbers - 2) + 2 | bc))) | |
echo $(sed -n $(echo $linenumber)p $keyfile) | fold -w $(echo $1)| cat -b | sort -rn | cut -f2- | tail -1 | |
rm $keyfile $keyfile.pub |