Skip to content

Instantly share code, notes, and snippets.

Jordan Cauley jdcauley

Block or report user

Report or block jdcauley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View custom-menu-items.php
* Note! This is no longer updated here in the Gist. It has been moved to a repo.
* @link
* Class custom_menu_items
View Slack.js
var Slack = require('slack-client');
exports.foobar = function foobar() {
var token = '';
var autoReconnect = true;
var autoMark = true;
var slack = new Slack(token, autoReconnect, autoMark);
View LoginController.js
// controllers/LoginController.js
module.exports = {
index: function(req, res) {
var email = req.param('email');
var password = req.param('password');
// delay everthing to prevent bruteforce, dos and timing attacks
setTimeout(function() {
braidn / index.html
Created Sep 18, 2014 — forked from anonymous/index.html
Angular Simple Todo App
View index.html
<!DOCTYPE html>
<html ng-app='todoApp'>
<script src=""></script>
<script src=""></script>
<link href="" rel="stylesheet" type="text/css" />
<script src=""></script>
<title>TO DO List</title>
tw2113 / class.WDS_JetPack_Popular_Posts.php
Last active Jun 30, 2019
JetPack Popular Posts class.
View class.WDS_JetPack_Popular_Posts.php
staltz /
Last active Nov 13, 2019
The introduction to Reactive Programming you've been missing
johnpeele / gulpfile.js
Last active Aug 29, 2015
Gulp for Front-End Development
View gulpfile.js
var gulp = require('gulp');
var less = require('gulp-less');
var path = require('path');
var styl = require('gulp-styl');
var browserify = require('gulp-browserify');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var refresh = require('gulp-livereload');
var lr = require('tiny-lr');
adityamukho / User.js
Last active Mar 7, 2019
Passport authentication for Sails.js 0.9.x
View User.js
* api/models/User.js
* The user model contains the instance method for validating the password.
var bcrypt = require('bcrypt');
function hashPassword(values, next) {
bcrypt.hash(values.password, 10, function(err, hash) {
RunnerRick /
Last active Oct 1, 2016 — forked from theangryangel/AuthController.js
How To Integrate Sails and Passport
You can’t perform that action at this time.