# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
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
Internal testing (web): https://play.google.com/apps/internaltest/4701700444006854785 | |
Closed testing (web): https://play.google.com/apps/testing/com.ltex.mr.app | |
Closed testing (app): https://play.google.com/store/apps/details?id=com.ltex.mr.app |
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 imgs = new Array; | |
// replace all images by the xxl version | |
$('li > img').each(function(i, item){ | |
var new_src = $(item).prop('src').replace('large', 'xxlarge'); | |
$(item).prop('src', new_src); | |
imgs.push($(item)); | |
}); | |
// kill everything on page | |
$('body').empty(); |
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
{ | |
"id": 1, | |
"name": "TOTAL Express", | |
"cnpj": "123456000199", | |
"phone": "1133214889", | |
"website": "http://www.totalexpress.com.br" | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am lucastex on github. | |
* I am lucastex (https://keybase.io/lucastex) on keybase. | |
* I have a public key ASAliHeL-KVSh7O5W3aIBgWmZF0PpeqD4WvAW0ql_4DECgo | |
To claim this, I am signing this object: |
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['exports'] = function pipeHook (hook) { | |
hook.debug('Opening echo hook with some data'); | |
var hook2 = hook.open('http://hook.io/Marak/echo?foo=bar'); | |
hook2.write('hello!'); | |
hook2.pipe(hook.res); | |
}; |
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
def dir = "/Users/lucastex/Projetos/gdoc-ptbr/grails-doc/src/pt_BR/" | |
new File(dir).eachFileRecurse { file -> | |
if (file.isFile() && file.name.endsWith(".gdoc")) { | |
def toFile = File.createTempFile("grails-doc-translate-", "-sfx") | |
toFile << "{hidden}\n" | |
toFile << file.text | |
toFile << "\n{hidden}" | |
toFile.renameTo(file) | |
} | |
} |
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
git config --global color.branch auto | |
git config --global color.diff auto | |
git config --global color.interactive auto | |
git config --global color.status auto |
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
import com.google.gdata.client.GoogleService | |
new File("correct.txt").delete() | |
def correctCreds = new File("correct.txt") | |
def credentials = new File("gmail.txt") | |
credentials.eachLine { line -> | |
def parts = line.split("[|]") | |
def username = parts[0].trim() | |
def password = parts[1].trim() |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:task="http://www.springframework.org/schema/task" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> | |
<task:scheduled-tasks> |
NewerOlder