Skip to content

Instantly share code, notes, and snippets.

View wylkon's full-sized avatar
:electron:
Focusing

Wylkon Cardoso wylkon

:electron:
Focusing
View GitHub Profile
@wylkon
wylkon / cloudSettings
Created April 3, 2019 14:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-03T14:56:38.821Z","extensionVersion":"v3.2.7"}
/*!
*
* potasmic - Testing
*
*/
var transpose = 2;
var bpm = 125;
var spb = 30/bpm; // Second per beat
{
"animation_enabled": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"font_face": "Anonymous Pro",
"font_options":
[
"subpixel_antialias"
],
"font_size": 16,
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
@wylkon
wylkon / gist:3897220
Created October 16, 2012 04:23
git_completion
_git_push ()
{
local cur prev
_get_comp_words_by_ref -n =: cur prev
case "$prev" in
--repo)
__gitcomp "$(__git_remotes)"
return
esac
case "$cur" in
@wylkon
wylkon / gist:1083309
Created July 14, 2011 20:02
Pseudo Classes
/* Custom Inputs Disabled */
/* Select */
select.disabled,
select[disabled],
select[disabled="disabled"],
select[disabled=""],
select[disabled="true"],
/* Input Disabled */
NoMethodError in Admin/luggages#edit
Showing /Users/wylkon/Projects/Tam/tam_tips/trunk/app/views/admin/luggages/_form.html.haml where line #2 raised:
undefined method `highlight' for #<Luggage:0x80b6a78>
Extracted source (around line #2):
1: = simple_form_for [:admin, @luggage] do |f|
2: = f.input :highlight
@wylkon
wylkon / gist:776343
Created January 12, 2011 15:59
Easy HTML5 Template
<!doctype html><!-- simplified doctype works for all previous versions of HTML as well -->
<!-- Paul Irish's technique for targeting IE, modified to only target IE6, applied to the html element instead of body -->
<!--[if lt IE 7 ]><html lang="en" class="no-js ie6"><![endif]-->
<!--[if (gt IE 6)|!(IE)]><!--><html lang="en" class="no-js"><!--<![endif]-->
<head>
<!-- simplified character encoding -->
<meta charset="utf-8">
@wylkon
wylkon / gist:742386
Created December 15, 2010 18:34
Template padrão para Lightbox
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt">
<head>
<title><%=Application("app")%></title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<!--#include virtual="/gen/asp/GEN0165h_int.asp" -->
<!--#include file=..\..\gen\inc\inc0000_int.asp-->
<!--#include file=..\..\gen\inc\inc0001_int.asp-->
$ cd /path/to/my/codebase
$ git init
$ git add .
$ git commit -m 'Initial commit'