# 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
Important: This is an early development stage. So far only login is implemented. You can however post to any endpoints of the API but you have to deal with the response yourself
Provide a username and a password. The response of snapchat will contain the friends, the besties, the snaps and some additional information.
helpers.login(USERNAME, PASSWORD, function(res) { someCallback(); }, function(err) { someError(); });
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
tmp.main_content = CONTENT | |
tmp.main_content { | |
table = tt_content | |
select { | |
where = colPos = 0 | |
orderBy = sorting | |
languageField = sys_language_uid | |
} | |
renderObj = COA | |
renderObj { |
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
" Pathogen | |
execute pathogen#infect() | |
" Basics | |
syntax on | |
filetype plugin indent on | |
set number | |
let mapleader = "," | |
set guifont=Menlo\ Regular:h13 |
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
// Generated by CoffeeScript 1.7.1 | |
var Model, bcrypt, lodash, mongoose; | |
mongoose = require("mongoose"); | |
bcrypt = require("bcrypt"); | |
lodash = require("lodash"); | |
Model = (function(mongo, crypt, _) { |
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
// Generated by CoffeeScript 1.7.1 | |
var AlbumModel, Model; | |
Model = require('./basemodel'); | |
require('./user'); | |
require('./photo'); | |
require('./like'); |
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
app.use(function*() { | |
this.user = yield magicUserIncjection(); | |
next(); | |
this.newToken = magicNewTokenFunction(); | |
}); |
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
" Pathogen | |
execute pathogen#infect() | |
" Basics | |
syntax on | |
filetype plugin indent on | |
set number | |
let mapleader = "," | |
set guifont=Menlo\ Regular:h13 |
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
.foo { | |
padding: 1px 1.5px; | |
} |
OlderNewer