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
'body': | |
'ctrl-tab ^ctrl': 'unset!' | |
'ctrl-tab': 'pane:show-next-item' | |
'ctrl-shift-tab ^ctrl': 'unset!' | |
'ctrl-shift-tab': 'pane:show-previous-item' |
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
var fs = require("fs"); | |
var ncp = require("ncp").ncp; | |
fs.watchFile("arquivo.txt", function(current, previous) { | |
console.log("MEXEU"); | |
ncp.limit = 16; | |
ncp("arquivo.txt", "arquivo2.txt", function (err) { | |
if (err) { | |
return console.error(err); | |
} |
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 argumentsAsArray() { | |
var args = Array.prototype.slice.call(arguments); | |
console.log(args); | |
} | |
argumentsAsArray('argument_01', 'argument_02', 'argument_03'); |
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 myObject(what){ | |
this.iAm = what; | |
this.whatAmI = function(language){ | |
alert('I am ' + this.iAm + ' of the ' + language + ' language'); | |
}; | |
}; | |
var myNewObject = new myObject('an object'); | |
myNewObject.whatAmI('JavaScript'); |
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
/* | |
Theme Name: Twenty Fourteen Child | |
Theme URI: http://example.com/twenty-fourteen-child/ | |
Description: Twenty Fourteen Child Theme | |
Author: John Doe | |
Author URI: http://example.com | |
Template: twentyfourteen | |
Version: 1.0.0 | |
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready | |
Text Domain: twenty-fourteen-child |
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
//Declare Global Variable | |
WinJS.Namespace.define("MyGlobals", { | |
variable1: 'Value 1', | |
variable2: 'Value 2', | |
}); | |
//Change Variable | |
MyGlobals.variable1 = "Your value 1"; | |
MyGlobals.variable2 = "Your value 2"; |
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
/*Position the Element 50% left and 50% top, and remove half of size of the object to center it in the middle.*/ | |
.element { | |
height:400px; | |
width:200px; | |
left:50%; | |
top:50%; | |
position:absolute; | |
/*Height and Width Divide by 2*/ | |
margin:-200px 0 0 -100px; | |
} |
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
//Create Date | |
var date = new Date(); | |
//Create Month Array | |
var months = [ | |
"Janeiro", | |
"Fevereiro", | |
"Março", | |
"Abril", | |
"Maio", |
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
//Sample Button Handler to Start animation on div .box | |
$('button').on('click', function(event) { | |
event.preventDefault(); | |
startAnimation('animation 1s ease-in','.box') | |
}); | |
/** | |
* Handle Animation (Start, Reset, Restart) | |
* animationProprierties | Animation name, Animation time, Animation tween (Sample: animation 1s ease-in ) |
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
jQuery(document).ready(function($) { | |
//Documentation http://www.sitepoint.com/css3-animation-javascript-event-handlers/ | |
// W3C STANDARD | |
// animationstart | |
// animationiteration | |
// animationend |