This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
octal, ipv4, input = [128, 64, 32, 16, 8, 4, 2, 1], [[],[],[],[]], nil | |
while input.nil? || input.split('.').size != 4 do | |
puts "Ingrese IPv4 a convertir" | |
input = gets.chomp | |
end | |
input = input.split('.').map(&:to_i) | |
ipv4.each_with_index do |binary_set, index| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inHoursFilter(mins) { | |
// Return String with Qty of Hours and Mins | |
// REFACTOR! | |
var total = Math.round((parseFloat(mins)/60)*100)/100, | |
hours = Math.floor(total), | |
minutes = Math.round(parseFloat('0.'+ total.toString().split('.')[1]) * 100 ) / 100, | |
result = ""; | |
if( hours === 0) { | |
return mins + ' mins'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:((function registerKompass() { | |
var step1 = { | |
radio: ["rdoServiceIn_0"], | |
common: { | |
"txtLastName": 'PASSPORT LAST NAME', | |
"txtFirstName": 'PASSPORT FIRST NAME', | |
"txtDob": 'yyyy-mm-dd', | |
"ddlCitizenship": 'COUNTRY', // CL == Chile | |
"txtEmailAddress": '[email protected]', | |
"txtEmailAddressConfirm": '[email protected]', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
function randomize(arr) { | |
return arr[Math.floor(Math.random() * (arr.length - 0))]; | |
} | |
var cepList = ["69921722", | |
"69915848", "69918618", "69903034", | |
"69921749", "69900312", "69900309", | |
"69900214", "69918048", "69918012", | |
"69900270", "69900273", "69918060", | |
"69900259", "69917746", "69900092", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"atomic_save": true, | |
"color_scheme": "Packages/Theme - Nil/Tubnil.tmTheme", | |
"draw_white_space": "all", | |
"font_face": "Monaco", | |
"font_size": 12.0, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Vintage" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
function randomize(arr) { | |
return arr[Math.floor(Math.random() * (arr.length - 0))]; | |
} | |
var cpfList = ["79722351800", | |
"08551583875", | |
"19072143051", | |
"12687174440", | |
"84077884659", | |
"26882180008", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION="3.3.0" | |
echo "-> Downloading TeamSpeak 3 Version $VERSION" | |
wget http://ftp.4players.de/pub/hosted/ts3/releases/$VERSION/teamspeak3-server_linux-amd64-$VERSION.tar.gz | |
echo "-> Decompressing Files... " | |
tar xzf teamspeak3-server_linux-amd64-$VERSION.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Tabs = function(){ | |
function init(){ | |
$('.options > div > a').on('click', function(e){ | |
e.preventDefault(); | |
var $this = $(this); | |
if(!$this.hasClass('active')){ | |
var activeTab = $('.active'); | |
var activeElement = $(activeTab.attr('href')); | |
var triggeredElement = $($this.attr('href')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module I10 | |
# Returns Internal Rate of Return (TIR Spanish) for a cash | |
# flow in numbers, with the payments as values. | |
# @param transactions : Array which contains initial project cost, | |
# and the payments over the time. | |
def I10.irr(transactions, max_iterations = 20) | |
min = 0.0 | |
max = 1.0 | |
npv = 0 | |
iterations = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} }, | |
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} }, | |
{ "keys": ["super+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": false} }, | |
{ "keys": ["super+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": false} }, | |
{ "keys": ["super+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} }, | |
{ "keys": ["super+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} }, | |
{ "keys": ["super+shift+up"], "command": "swap_line_up" }, |
NewerOlder