Let's declare a function that explicitly throws an error
hehe = ->
throw new Error "OMFG"
Let's simulate some behavior within Promise's constructor
try { | |
if (empty($_POST["name"])) { | |
throw new UserRegistrationException("Your name cannot be empty."); | |
} | |
if (filter_var($_POST["email"])) { | |
throw new UserRegistrationException("Invalid email"); | |
} | |
} catch (UserRegistrationException $e) { | |
} |
<link rel="import" href="../ace-element/ace-element.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
Let's declare a function that explicitly throws an error
hehe = ->
throw new Error "OMFG"
Let's simulate some behavior within Promise's constructor
highlight = require 'highlight.js' | |
cheerio = require 'cheerio' | |
color-it = (code, lang) -> | |
html = (highlight.highlight lang, code).value | |
$ = cheerio.load("<div id=\"the-wrapper\">#{html}</div>") | |
elements = [] | |
($ '#the-wrapper *').each -> |
var validator = require('validator') | |
, R = require("ramda") | |
, Promise = require("bluebird"); | |
var skip = R.defaultTo(null); | |
var pairObjectify = R.pipe( | |
R.splitEvery(2), | |
R.map(x => ({key: R.head(x), value: R.last(x)})) | |
); |
Depois do Facebook dropar vários endpoints da GraphAPI e também dropar o FQL, eu comecei a estudar duramente os processos e todas as comunicações que o Facebook faz no frontend para poder usufruir de várias maneiras.
Não é complexo, na verdade é mais bagunçado do que complexo, as APIs não são uniformes nem na chamada nem nos resultados, então é bom sempre olhar direito.
O primeiro passo é você descolar a mais importante variável que é usadas em todas as chamadas,
que é o dtsg
ou fb_dtsg
(sabe lá deus o que isso quer dizer), na versão do website para
desktop(facebook.com
) ela fica num elemento que tem o id fb_dtsg
, na versão mobile
package li.ues.hermes.system; | |
import android.database.Cursor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import java.util.Dictionary; | |
import java.util.Hashtable; | |
import java.util.List; |
import slick.model.Model | |
import slick.driver.PostgresDriver | |
import Config._ | |
import scala.concurrent._ | |
import scala.concurrent.duration._ | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import slick.codegen.SourceCodeGenerator | |
import slick.jdbc.meta.MTable | |
import slick.model.Column |
Definitions. | |
WS = ([\000-\s]|%.*) | |
T_VAR = [A-Za-z\.\-] | |
Rules. | |
or : {token,{'T_OR',TokenLine,list_to_atom(TokenChars)}}. | |
and : {token,{'T_AND',TokenLine,list_to_atom(TokenChars)}}. | |
{T_VAR}+ : {token,{'T_VAR',TokenLine,TokenChars}}. | |
[()] : {token,{list_to_atom(TokenChars),TokenLine}}. |
[user] | |
email = [email protected] | |
name = Wesley Schleumer | |
[svn] | |
rmdir = true | |
[core] | |
compression = 0 | |
excludesfile = ~/.gitignore | |
packedGitLimit = 2047m | |
packedGitWindowSize = 2047m |