Skip to content

Instantly share code, notes, and snippets.

View simbo's full-sized avatar
:octocat:

Simon Lepel simbo

:octocat:
View GitHub Profile
/* =============================================================================
Gradients with unlimited color-stops (ready to use with Autoprefixer)
========================================================================== */
#gradient {
// Filter color-stop params
.color-stops(@color-stops-N...) {
@color-stops: ~`"@{arguments}".replace(/(^\[)|(\]$)/g,'')`;
}
/* =============================================================================
Gradients with unlimited color-stops
========================================================================== */
#gradient {
// Filter color-stop params
.color-stops(@color-stops-N...) {
@color-stops: ~`"@{arguments}".replace(/(^\[)|(\]$)/g,'')`;
@color-stops-webkit: ~`(function(c){
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: postgresql #changed this
encoding: utf8
database: hosted_development #changed this
username: alan #changed this
password: MlwhvC4R
# Warning: The database defined as "test" will be erased and
@simbo
simbo / bp-setup-mac-for-frontend.md
Last active August 29, 2015 14:16
bp setup mac for frontend

OSX updaten

VirtualBox

Vagrant

Xcode (für BuildTools und iOS Simulator)

Homebrew

  • wget

nginx auf dem Uberspace

Installation

Lade die neueste "mainline"-Version (hier 1.7.9) von http://nginx.org/en/download.html herunter und entpacke sie:

$ wget http://nginx.org/download/nginx-1.7.9.tar.gz 
$ tar xf nginx-1.7.9.tar.gz
# oh-my-zsh config
export ZSH=$HOME/.oh-my-zsh
export UPDATE_ZSH_DAYS=13
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="dd.mm.yyyy"
plugins=(git emoji-clock nvm)
# paths
export PATH=$HOME/.bin:/usr/local/bin:$PATH
export MANPATH="/usr/local/man:$MANPATH"
@simbo
simbo / Preferences.sublime-settings
Created April 8, 2015 11:33
Preferences.sublime-settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 1,
"caret_style": "smooth",
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme",
"font_face": "Menlo",
"font_size": 17,
@simbo
simbo / Package Control.sublime-settings
Created April 8, 2015 11:36
Package Control.sublime-settings
{
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"All Autocomplete",
"ApacheConf.tmLanguage",
"AutoFileName",
@simbo
simbo / node-run-shell-cmd.js
Created April 28, 2015 09:01
[node] run shell commands without using an extra package.
var childProcess = require('child_process');
var cwd = process.cwd();
var childProcessOptions = {
stdio: 'inherit',
cwd: cwd
};
childProcess.spawnSync('my-super-commandline-command', ['param1', 'param2'], childProcessOptions);
@simbo
simbo / create-a-vagrant-box.md
Last active August 29, 2015 14:21
Create a vagrant box

Create a vagrant box

Configure the virtual hardware

Create a new Virtual Machine in VirtualBox with the following settings:

  • Name: my-vagrant-box
  • Type: Linux