Bin e padrões para validação de cartão de crédito.
Bandeira | Começa com | Máximo de número | Máximo de número cvc |
---|---|---|---|
Visa | 4 | 13,16 | 3 |
Mastercard | 5 | 16 | 3 |
Put in (Preferences -> Key Bindings - User): | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" } |
### NOTE ### | |
The below gist is converted to a blog post and available at below link. Refer that instead. | |
http://hemenkapadia.github.io/blog/2016/11/11/Ubuntu-with-Nvidia-CUDA-Bumblebee.html | |
#### Note about kernel versions #### | |
Between kernel versions 4.2 and 4.4 there are different options that need to bet set | |
to get this working. The same is highlighted below when necessary. I have not tested |
#!/bin/sh | |
# Find the amount by doign | |
# synclient | grep HorizScrollDelta | |
# synclient | grep VertScrollDelta | |
# And then simply negative that value for this | |
# Found at | |
# https://askubuntu.com/questions/690512/how-to-enable-natural-scrolling-in-xfce4/853262 | |
# This is because, although xubuntu 18.04 has reverse scrolling option in touchpad | |
# settings, it doesn't really work, the setting does not cascade to gnome apps for some reason. | |
synclient HorizScrollDelta=-116 |
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled. | |
Using the code from twitter bootstrap documentation page, this code is customized for table header. | |
Create the table with following layout - | |
<table class="table-fixed-header"> | |
<thead class="header"> | |
<tr> | |
<th>Column 1</th> | |
<th>Column 2</th> | |
<th>Column 3</th> |
// Handlebars.js - Gravatar thumbnail | |
// Usage: {{#gravatar email size="64"}}{{/gravatar}} [depends on md5.js] | |
// Author: Makis Tracend (@tracend) | |
Handlebars.registerHelper('gravatar', function(context, options) { | |
var email = context; | |
var size=( typeof(options.hash.size) === "undefined") ? 32 : options.hash.size; | |
return "http://www.gravatar.com/avatar/" + MD5( email ) + "?s="+ size; | |
}); |
#! /bin/sh | |
set -u | |
NAME=<set your application name here> | |
DIRECTORY=<set your application directory here> | |
PIDFILE=/var/run/$NAME.pid | |
DAEMON="/usr/local/rvm/bin/rvm exec rackup" | |
DAEMON_ARGS="-s Kirk config.ru -p 3000 -P $PIDFILE" |