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 mongoose = require('mongoose'), | |
// Import de modelos y registro en mongoose | |
require('./user'); | |
/* | |
require('./dog'); | |
require('./enterprise'); | |
··· | |
*/ |
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
<!DOCTYPE hmtl> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Mi juego</title> | |
<style> | |
#micanvas { | |
background: #000; | |
} | |
</style> |
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
_ = require('underscore'); | |
function doubled(list, newL) { | |
if(!newL) newL = []; | |
return list.length == 0 ? | |
newL : | |
doubled( | |
_.tail(list, 2), | |
_.union(newL, [_.head(list, 2)]) |
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
package comando; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.io.StringWriter; | |
import java.io.Writer; | |
import java.util.ArrayList; |
![mockup.jpg](https://gist.github.com/pandres95/d9eb497eac66e856e9c5/raw/b6f3dd0759cdd3d1fc46bf81abbb2d18b10ea1cc/mockup.jpg)
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
module.exports = { | |
upside: /([^\<\<\<\<\<\<\< HEAD\n])([\s\S]+)(?=\=\=\=\=\=\=\=)/, | |
downside: /(\=\n)([\s\S]+)(?=\>\>\>\>\>\>\>)/ | |
}; |
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
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
tools:context="co.gov.inci.evaluon.gui.controllers.settings.HelpActivity" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<ScrollView |
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
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
void promptData( | |
int* numberOfSubjects, | |
int* creditsSubject1, int* creditsSubject2, | |
int* creditsSubject3, int* creditsSubject4, | |
int* weeklyClassHours |
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 Q = require('q') | |
, _ = require('underscore'); | |
schema.statics.updateDocument = function(id, data){ | |
return Q.nbind(this.findOne, this)({ _id: id }).then(document => { | |
_.chain(data).omit([ '_id', '__v' ]).map((value, key) => { | |
if(document.hasOwnProperty(key)) { | |
this[key] = value; | |
} | |
}); |
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
'use strict'; | |
module.exports = function (app) { | |
var client = new app.models.Client(); | |
this.list = function (req) { var query = req || {}; | |
return client.list(query.search, query.fields, query.projection); | |
}; | |
this.find = function (id) { |
OlderNewer