Skip to content

Instantly share code, notes, and snippets.

.box { height: 100px; width: 100px; margin: 1px; background: #bbb; }
.bild {
float: left;
}
.inhalt {
float: right;
@DerZyklop
DerZyklop / dabblet.css
Created May 7, 2012 10:28
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
.box { width: 100px; height: 100px; margin: 20px; background: #bbb; }
.links {
float: left;
}
.mitte {
float: left;
}
.rechts {
float: left;
}
@DerZyklop
DerZyklop / dabblet.css
Created April 17, 2012 20:36 — forked from anonymous/dabblet.css
Untitled
.box { width: 100px; height: 100px; margin: 1px; background: #bbbbbb; }
.eins {
position: absolute;
top: 10px;
left: 100px;
}
.zwo {
@DerZyklop
DerZyklop / coffeescript-comments-regex
Created April 15, 2015 10:10
regular expression for coffeescript comments
^([ ]*)#( [a-z,A-Z,0-9,üöä, ,":.'()->?`\[\]]*)
@DerZyklop
DerZyklop / .eslintrc
Created April 14, 2015 17:23
default .eslintrc
{
"ecmaFeatures": {},
"parser": "espree",
"env": {
"browser": false,
"node": false,
"amd": false,
"mocha": false,
"jasmine": false
},
@DerZyklop
DerZyklop / older-node.sh
Last active August 29, 2015 14:07
brew install specific version of node
# Get an older version of node
cd /usr/local
brew versions node
git checkout 51dbf0b Library/Formula/node.rb # If you e.g. want version 0.10.31
brew install node
# Get an older version of npm
npm install -g npm@1.4.27
@DerZyklop
DerZyklop / deploy-openui5.sh
Last active August 29, 2015 14:07
Make an openui5-app work on android
sudo npm install -g cordova
brew install android-sdk -g
android
// Now the "Android SDK-Manager" GUI opens; download the preselected packages plus "Android 4.4.2 (API 19)"
brew cask install android-file-transfer
brew install ant -g
cordova create hello com.example.hello HelloWorld
cd hello
@DerZyklop
DerZyklop / git-grep-todo.md
Created October 2, 2014 09:32
grep TODOS from a git-project

Use

git grep -E "# TODO|// TODO"

or

git grep -El '# TODO|// TODO' | xargs -n1 git blame | grep $(git config user.name) | grep TODO

to get your todos from a git-project.

@DerZyklop
DerZyklop / contrib
Created September 17, 2014 12:04
Clean way of contributing to a git project.
github_project='[projectname]' # e.g. github_project='kirby'
project_creator_username = # e.g. github_project='getkirby'
my_username='DerZyklop'
git clone "https://github.com/$project_creator_username/$github_project"
# now click the "fork" button
git remote add "$my_username" "https://github.com/$my_username/$github_project"
git checkout -b [name of my new feature]