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
// Get values inside brackets, ex: {{test}} | |
/{{[{]?(.*?)[}]?}}/g | |
// Get values started with @, ex: @test | |
/@[a-zA-Z]*/g |
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 extractEmailAddresses() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getSheets()[0]; | |
var search = "in:spam is:all "; | |
var threads = GmailApp.search(search); | |
var row, messages, from, email; | |
try { |
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 blob = dataURItoBlob(res); | |
var fd = new FormData(document.forms[0]); | |
fd.append("canvasImage", blob); | |
var file = dataURLtoFile(res, 'a.jpeg'); | |
function dataURItoBlob(dataURI) { | |
var binary = atob(dataURI.split(',')[1]); | |
var array = []; | |
for(var i = 0; i < binary.length; i++) { |
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
watch: { | |
jekyll: { | |
files: [ | |
'<%= yeoman.app %>/**/*.{html,yml,md,mkd,markdown}', | |
'!<%= yeoman.app %>/_bower_components/**/*' | |
], | |
tasks: ['jekyll:server'] | |
}, | |
css: { | |
files: '<%= yeoman.app %>/css/**/*.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
(function(){ | |
'use strict'; | |
/** | |
* @ngdoc <type> | |
* @name app | |
* @function | |
* | |
* @description | |
* <description> |
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
python -m SimpleHTTPServer |
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
$http({ | |
method: 'POST', | |
url: ref + 'user/rule/new', | |
data: $.param(cliente), | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded' | |
} | |
}).success(function(cb){ | |
console.log(cb); | |
}); |
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
{ | |
"categorias" : { | |
"categoria2" : { | |
"subcategorias" : { | |
"subcategoria4" : { | |
"nome" : "Subcategoria 4" | |
}, | |
"subcategoria6" : { | |
"nome" : "Subcategoria 6" | |
}, |
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
# Folders | |
_site/ | |
node_modules/ | |
tmp/ | |
.tmp/ | |
build/ | |
.vagrant/ | |
log/ | |
.log/ | |
$RECYCLE.BIN/ |
NewerOlder