This file contains 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 titleCase(str) { | |
str = str.toLowerCase(); | |
var split = str.split(' '); | |
for (var i = 0; i < split.length; i++) { | |
split[i] = split[i].charAt(0).toUpperCase() + split[i].slice(1); | |
} | |
var capitalizeString = split.join(' '); | |
return capitalizeString; |
This file contains 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 myUpperCase(str) { | |
split = str.split(' '); | |
for (var i = 0; i < split.length; i++) { | |
split[i] = split[i].charAt(0).toUpperCase() + split[i].slice(1); | |
} | |
capitalizeString = split.join(' '); | |
return capitalizeString; | |
} |
This file contains 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 findDivisor() { | |
var numbers = []; | |
var number = 100000; | |
while (numbers.length < 6) { | |
for (var i = 0; i < 6; i++) { | |
if (number % 2 == 0 && number % 3 == 0 && number % 5 == 0){ | |
var divisor = numbers.push(number); | |
} |
This file contains 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
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
This file contains 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
<div class="video-container"> | |
<iframe width="854" height="510" src="https://www.youtube.com/watch?v=1HBAqiNuFZs" ...> | |
</div> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Bootstrap Accordeon</title> | |
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script> | |
<!-- Latest compiled and minified CSS --> |
This file contains 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
License Key PhpStorm 8 | |
User Name : EMBRACE | |
===== LICENSE BEGIN ===== | |
43136-12042010 | |
00002UsvSON704l"dILe1PVx3y4"B3 | |
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh | |
gd1BebYc5U"6OxDbVsALB4Eb10PW8" | |
===== LICENSE END ===== |
This file contains 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
License Key PhpStorm 8 | |
User Name : EMBRACE | |
===== LICENSE BEGIN ===== | |
43136-12042010 | |
00002UsvSON704l"dILe1PVx3y4"B3 | |
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh | |
gd1BebYc5U"6OxDbVsALB4Eb10PW8" | |
===== LICENSE END ===== |
This file contains 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
// Calling our function with a parameter as ID | |
function loadFlickr(flickrId) { | |
//Display a loading icon in our display element | |
$('#feed').html('<span><img src="/blog/images/lightbox-ico-loading.gif" alt=""></span>'); | |
// Request the JSON and process it | |
$.ajax({ | |
type:'GET', | |
url:"http://api.flickr.com/services/feeds/photos_public.gne", | |
data:"id"+flickrId+"&lang=en-us&format=json&jsoncallback=?", |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Prototype Inheritance</title> | |
<script type="text/javascript"> | |
function Domestico() { | |
this.animal = ""; | |
this.nombre= ""; | |
this.configurarAnimal = function(nuevoAnimal) { |