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
<?php | |
trait MetaClass | |
{ | |
protected $__classMethods = array(); | |
static protected $__staticMethods = array(); | |
public function __call($name, $args) | |
{ |
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 assert = require("assert") | |
var mongo = require('./mongo.js') | |
var databaseUrl = "leitordecarga"; | |
var collections = ["tables"] | |
var db = require("mongojs").connect(databaseUrl, collections); | |
callback = []; | |
db.open(function(err, db) { | |
if (!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
Switcher = { | |
getNumberOfColumns: function(){ | |
//menos as 5 columns default | |
//retorna só as colunas sem switch | |
return ($('td.tablesorter-header').length/2)-5; | |
}, | |
getIncrementator:function(){ | |
var i = 3; | |
for (var i = 1; i <= 5; i++) { | |
if(getNumberOfColumns() == 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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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 message = { | |
"html": 'asdasd', | |
"text": 'asdasd', | |
"subject": 'asdasdasd', | |
"from_email": "[email protected]", | |
"from_name": "Leilão de Ônibus", | |
"to": [{ | |
"email": '[email protected]', | |
"type": "to" | |
},{ |
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
'sendMail': function(mailBody,maiSubject,mailTo, sendAt){ | |
if(mailTo == 'string'){ | |
mailTo = formatMailTo(mailTo); | |
} | |
var message = { | |
"html": mailBody, | |
"text": mailBody, | |
"subject": maiSubject, |
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
this.sendMail = function(mailBody,maiSubject,mailTo, sendAt, callback){ | |
if(mailTo == 'string'){ | |
mailTo = formatMailTo(mailTo); | |
} | |
var message = { | |
"html": mailBody, | |
"text": mailBody, | |
"subject": maiSubject, | |
"from_email": "[email protected]", |
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
filtered = list(r.table(collection).filter( | |
lambda doc: \ | |
(doc['id'] == _filters.get('id')).default(False) | \ | |
(doc['userIds'].contains(_filters.get('userIds'))).default(False) | \ | |
(doc['checkpointIds'].contains(_filters.get('checkpointIds'))).default(False) | |
).run(self.rdb_conn)) |
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
<?xml version='1.0' encoding='utf-8'?> | |
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.ionicframework.bustracker165613" xmlns:android="http://schemas.android.com/apk/res/android"> | |
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true"> | |
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize"> | |
<intent-filter android:label="@string/launcher_name"> | |
<action |
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 socket = io.connect('http://' + document.domain + ':' + location.port + '/profile'); | |
var CommentList = React.createClass({ | |
render: function() { | |
var data = this.props.data; | |
var foo = data.map(function(row){ | |
console.log(row) | |
return <tr data-reactid={row.id}> | |
<td>{row.place}</td> |
OlderNewer