Skip to content

Instantly share code, notes, and snippets.

View nehalist's full-sized avatar

Kevin nehalist

View GitHub Profile
// api/models/Passport.js
var bcrypt = require('bcryptjs');
/**
* Hash a passport password.
*
* @param {Object} password
* @param {Function} next
*/
function hashPassword (passport, next) {
getInitialData: ->
return $q (resolve, reject) =>
if(@data.length > 0)
resolve @data
else
reject 'data not loaded'
\index.php
\wp-blog-header.php
\wp-load.php
\wp-config.php
\wp-settings.php
\wp-includes\load.php
\wp-includes\default-constants.php
\wp-includes\version.php
\wp-includes\compat.php
\wp-includes\random_compat\random.php
// Router
this.resource('notes', function() {
this.resource('notebook', { path: ':notebook_id' }, function() {
this.resource('note', { path: ':note_id' });
});
});
// models/note.js
import DS from 'ember-data';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
/*!
Theme Name: Boilerplate
Theme URI: http://nehalist.io
Version: 1.0.0
Text Domain: boilerplate
Author: Kevin Hirczy
Author URI: http://nehalist.io
Description: ...
Tags:
License: GNU General Public License v2 or later
<?php
// WordPress Content Width
// See https://codex.wordpress.org/Content_Width
$content_width = 1000;
// Theme Features
// See https://codex.wordpress.org/Function_Reference/add_theme_support
$theme_support = [
];
"devDependencies": {
"bower": "^1.4.1",
"grunt": "^0.4.5",
"grunt-bower-concat": "^0.4.0",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-csslint": "^0.4.0",
"grunt-contrib-sass": "^0.9.2",
"grunt-contrib-watch": "^0.6.1",
var app = require('express')()
, server = require('http').Server(app)
, io = require('socket.io')(server)
, Twit = require('twit');
server.listen(8000);
app.get('/', function (req, res) {
res.sendfile(__dirname + '/index.html');
});
<?php
remove_filter('the_content', 'wpautop');
/*
|----------------------------------------------------------
| Sample output
|----------------------------------------------------------
*/
add_shortcode('sample', function($atts, $content = null) {
return '<samp>' . $content . '</samp>';