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
# Ruby | |
Hash[*((0..4).flat_map{|i| ['column_' + i.to_s, nil]})] | |
# => {"column_0"=>nil, "column_1"=>nil, "column_2"=>nil, "column_3"=>nil, "column_4"=>nil} | |
# Shell | |
### Bildersequenzen in Video für Web konvertieren mit: |
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
git achievements -l | grep '(Level' | sed 's/\(\s*.*(Level\)//g' | tr -d ')' | tr -s ' ' |tr "\n" '+' | sed 's/$/ 0/' | xargs expr |
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
{- | |
- Small programm to combine syllables, where some syllables | |
- are used only as suffix/prefix | |
- 1. Install: GHC | |
- 2. Compile: ghc -o namevote namevoting.hs | |
- 3. Run: namevote '[Pre "neo", Suf "master", Pre "turbo", Uni "leo", Suf "3000"]' | |
-} | |
module Main where | |
import System.Environment |
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
{-# LANGUAGE Arrows #-} | |
module Pickle where | |
import Control.Arrow | |
import Control.Arrow.ListArrow | |
import Text.XML.HXT.Arrow.Pickle | |
import Text.XML.HXT.Arrow.ReadDocument | |
data Strukt = Strukt { | |
text :: String |
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
public interface KeyValueFunction<KI, VI, KO, VO> { | |
Map.Entry<KO, VO> f(KI k, VI v); | |
} | |
/** | |
* Creates a new map by applying each element to the converter. | |
* | |
* @param <KI> key type of input map | |
* @param <VI> value type of input map |
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
update person set email = regexp_replace(email, E'@(.*)', '\\[email protected]'); |
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
find . | grep 'original/' | xargs identify | cut -d ' ' -f 3,1 | grep '[^0-9][0-9][0-9]x\|x[0-9][0-9]$' |
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
or i in `grep -h '^$[a-z_][^:]*' *.sass | sed 's|$\([a-z_][^:]*\).*|\1|'` ; do echo -n $i; grep $i *.sass | wc -l ; done | grep ' 1$' |
NewerOlder