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
/** | |
* get Instagram latest post. | |
* | |
* @params {object} args - | |
* @params {string} args.count - int | |
* @params {string} args.token - string, default: "12464375.5b9e1e6.2924280151d74a58a7e437a828decc37" | |
* @params {string} args.userId - string, default: "308301284" | |
* @params {string} args.tag - string, default: "slmf" | |
* @params {string} args.filter - string: "user" || "tags", default: "user" |
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
$( '.popup' ).on( "click", function( e ) { | |
e.preventDefault(); | |
var width = 575, | |
height = 400, | |
left = ( window.screen.width / 2 ) - ( ( width / 2 ) + 10 ), | |
top = ( window.screen.height / 2 ) - (( height / 2 ) + 50 ), | |
url = this.href, | |
opts = 'status=1' + |
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
Vagrant.configure("2") do |config| | |
config.vm.box = 'precise32' | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
config.vm.network :private_network, ip: "10.11.12.13" | |
config.vm.synced_folder ".", "/vagrant", nfs: true | |
#inside vagrant box run the following line to activate NFS |
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
/* | |
* params: array | |
* params.interval int, milisegundos para intervalos | |
* params.element DOM, ejemplo: $('.contenedor img' ) | |
* params.increment bool, true = +1 | |
* params.onComplete | |
*/ | |
function animateSequence( params ){ | |
var index = 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
function setActiveMenu( element ){ | |
$(element).click(function(){ | |
$(element).removeClass('active'); | |
$(this).addClass('active'); | |
}); | |
} |
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 getHash(){ | |
var hash = decodeURIComponent(window.location.hash); | |
var url = hash.split("/"); | |
// alert(url) | |
return url[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
var doSequence = { | |
theInterval: null, | |
currentIndex: 0, | |
count: 0, | |
pictureCount: 0, | |
indexOffset: 1, | |
element: null, | |
isIncrement: false, | |
interval: 60, | |
loop: false, |
NewerOlder