Skip to content

Instantly share code, notes, and snippets.

View lukaswilkeer's full-sized avatar

Lukas Wilkeer lukaswilkeer

View GitHub Profile
@lukaswilkeer
lukaswilkeer / index.html
Created October 27, 2012 17:54
A CodePen by Michael Martin-Smucker. CSS Stacked Paper Effect - Creating a messy stack of papers using the magic of CSS transforms and generated content.
<div class="letter">
<p>Dear Friends,</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod porta tempor. Donec pulvinar turpis nec velit pellentesque quis rhoncus sapien facilisis. Mauris quis massa dui, rhoncus viverra quam. Nulla tempus, augue ut consectetur facilisis, arcu elit pellentesque arcu, sed rutrum orci turpis pulvinar augue. Donec eget arcu mauris. Vestibulum tristique consequat lacus eget laoreet. Integer sed nisl sed nibh pulvinar ornare quis nec quam. Aenean rhoncus ligula ut lectus placerat a commodo quam vulputate. In eu metus turpis.</p>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus facilisis erat in nibh auctor at aliquet velit vestibulum. Curabitur turpis diam, malesuada eu consequat eget, ultricies sed nunc. Aenean sed odio massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ornare vulputate congue. Quisque leo metus, condimentum nec molestie et, egestas luctus libero.</p>
<p>M
@lukaswilkeer
lukaswilkeer / index.html
Created November 3, 2012 21:58
A CodePen by lukaswilkeer. CSS Stacked Paper Effect - Creating a messy stack of papers using the magic of CSS transforms and generated content.
<div class="letter">
<h1><center><p>Curriculum Vitae</p></center></h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod porta tempor. Donec pulvinar turpis nec velit pellentesque quis rhoncus sapien facilisis. Mauris quis massa dui, rhoncus viverra quam. Nulla tempus, augue ut consectetur facilisis, arcu elit pellentesque arcu, sed rutrum orci turpis pulvinar augue. Donec eget arcu mauris. Vestibulum tristique consequat lacus eget laoreet. Integer sed nisl sed nibh pulvinar ornare quis nec quam. Aenean rhoncus ligula ut lectus placerat a commodo quam vulputate. In eu metus turpis.</p>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus facilisis erat in nibh auctor at aliquet velit vestibulum. Curabitur turpis diam, malesuada eu consequat eget, ultricies sed nunc. Aenean sed odio massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ornare vulputate congue. Quisque leo metus, condimentum nec molestie et, eges
@lukaswilkeer
lukaswilkeer / index.html
Created November 7, 2012 19:48
Menu CSS (Sem Dropdown).
<!DOCTYPE html><html><head>
<title>Your Awesome Webpage</title>
<style>
#menu ul {
padding:0px;
margin:0px;
float: left;
width: 100%;
background-color:#EDEDED;
list-style:none;
@lukaswilkeer
lukaswilkeer / .bashrc
Last active February 13, 2023 15:47
Gnome terminal with colors and git branch.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
#define GIT_COLOR_NORMAL “”
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
@lukaswilkeer
lukaswilkeer / .vimrc
Last active August 29, 2015 14:03
My .vimrc
" R
" Change <Leader>
let mapleader = ","
" Exemplos de .vimrc: https://github.com/gmarik/vundle/wiki/Examples
" Vundle
" vim +BundleClean +BundleInstall! +qall
set nocompatible " be iMproved
@lukaswilkeer
lukaswilkeer / .zshrc
Created October 11, 2014 01:24
My OMYZSH preferences.
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
#ZSH_THEME="alanpeabody"
source /home/lukaswilkeer/.gvm/scripts/gvm
@lukaswilkeer
lukaswilkeer / stream.js
Created February 8, 2015 15:40
Twitter timeline stream.
var twitter = require('ntwitter');
var consumer_key = "";
var consumer_secret = "";
var access_token_key = "";
var access_token_secret = "";
var t = new twitter({
consumer_key: consumer_key
, consumer_secret: consumer_secret
@lukaswilkeer
lukaswilkeer / rules.js
Last active September 8, 2019 11:39
tiny-validator
const rules = {
'env': {
rule: (value) => rules.env.property.includes(value)
, property: ['production', 'sandbox']
, default: 'sandbox'
, errorMsg: 'Env must be production or sandbox'
},
'email': {
rule: (value) => value ? true : false
const TYPES = {
'Undefined': ( val ) => typeof val == 'undefined',
'Null': ( val ) => typeof val == 'object',
'Boolean': ( val ) => typeof val == 'boolean',
'Number': ( val ) => typeof val == 'number',
'String': ( val ) => typeof val == 'string'
}
// String -> [in, out]
const signature = (anotattion) => anotattion.split(' -> ')
@lukaswilkeer
lukaswilkeer / functions.php
Created June 19, 2017 16:07
Send emails from wordpress using mailgun and wp hooks
<?php
require_once VENDOR_PATH . 'autoload.php';
use Mailgun\Mailgun;
// WORDPRESS SHIT
// Email de aviso de post
function send_mail_post_pending_mailgun ($post_id, $post) {
$mgClient = new Mailgun('KEY');
$domain = "DOMAIN.COM";