Skip to content

Instantly share code, notes, and snippets.

if (player == null) return res.send({error: 'Secret no existy.'});
passport.use(new BasicStrategy(
function(username, password, done){
// TODO: Check if the credentials are correct.
// TODO: If not: done(null, false)
// TODO: Else done(null, userObject)
}
));
// Exchange resource owner credentials for an oauth key.
// FOR USE BY FIRST-PARTY APPS ONLY
server.exchange(oauth2orize.exchange.password(
if ($_GET['order_status'] == 'false')
$order->update_status('cancelled');
body {
background-image: url(http://assets-cloud.enjin.com/themes/1420195376_Untitled-1.png);
background-position: center bottom;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
.whitebtn {
background: white !important;
#include <stdio.h>
#include <regex.h>
#include <string.h>
#include <stdlib.h>
/**
* This is an enumeration of day.
*/
enum day {
SATURDAY = 1,
#include <stdio.h>
#include <regex.h>
#include <string.h>
#include <stdlib.h>
/* The following is the size of a buffer to contain any error messages
* encountered when the regular expression is compiled. */
#define MAX_ERROR_MSG 0x1000
var BoardSchema = new Schema({
logo: String,
info: String,
people: [{
name: String,
extra: String,
imageFile: String,
date: Date,
honour: String
}],
argv._.forEach(
(ns fireballz.core
(:gen-class
:extends org.bukkit.plugin.java.JavaPlugin
))
(defn -onEnable
"Runs when the plugin is started"
[]
(println "Hello, I am a plugin")
)
(ns chickenz.core
(:require [bukkure.logging :as log]
[bukkure.bukkit :as bk]
[bukkure.items :as i]
[bukkure.events :as ev]
[bukkure.entity :as ent]
[bukkure.world :as world])
(:import [org.bukkit ChatColor]
[org.bukkit.inventory.meta ItemMeta]))