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
// api/models/Passport.js | |
var bcrypt = require('bcryptjs'); | |
/** | |
* Hash a passport password. | |
* | |
* @param {Object} password | |
* @param {Function} next | |
*/ | |
function hashPassword (passport, next) { |
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
getInitialData: -> | |
return $q (resolve, reject) => | |
if(@data.length > 0) | |
resolve @data | |
else | |
reject 'data not loaded' |
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
\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 |
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
// 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'; |
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
$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; |
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
/*! | |
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 |
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 | |
// 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 = [ | |
]; |
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
"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", |
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 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'); | |
}); |
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 | |
remove_filter('the_content', 'wpautop'); | |
/* | |
|---------------------------------------------------------- | |
| Sample output | |
|---------------------------------------------------------- | |
*/ | |
add_shortcode('sample', function($atts, $content = null) { | |
return '<samp>' . $content . '</samp>'; |