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
import _ from 'lodash'; | |
const SPLIT_RE = /(\S+)(\s+|\s*$)/g; | |
const SPACE = ' '; | |
const ARTICLES = 'a an the'; | |
const CONJUNCTIONS = 'and but for nor or so yet'; | |
const PREPOSITIONS = 'ago at by for from in into next of off on onto out over past till to'; | |
const EXCEPTIONAL = SPACE + [ARTICLES, CONJUNCTIONS, PREPOSITIONS].join(SPACE) + SPACE; | |
function camelCase(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
import _ from 'lodash'; | |
const SPLIT_RE = /(\S+)(\s+|\s*$)/g; | |
const SPACE = ' '; | |
const ARTICLES = 'a an the'; | |
const CONJUNCTIONS = 'and but for nor or so yet'; | |
const PREPOSITIONS = 'ago at by for from in into next of off on onto out over past till to'; | |
const EXCEPTIONAL = SPACE + [ARTICLES, CONJUNCTIONS, PREPOSITIONS].join(SPACE) + SPACE; | |
function _titlize(match, word) { |
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
import React, { Component } from 'react'; | |
import PageWrapper from "../../components/PageWrapper"; | |
import Link from '../../components/Link'; | |
class Drip extends Component { | |
renderServices() { | |
const resource = this.props.reduxState.page.resource; | |
const data = resource.acf; | |
return data.services.map((service, index) => { |
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
<script> | |
jQuery(function($) { | |
$('#form-field-2').val(moment.tz.guess()) | |
}); | |
</script> |
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
<!-- http://momentjs.com/ --> | |
<script> | |
_dcq.push(['identify', { time_zone: moment.tz.guess() } ]); | |
</script> |
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 Devise | |
module Strategies | |
class Token < Base | |
# For more info. visit here.. | |
# http://kyan.com/blog/2013/10/11/devise-authentication-strategies | |
def valid? | |
token | |
end |
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 conf = { | |
port: 5000, | |
debug: false, | |
dbPort: 6379, | |
dbHost: '127.0.0.1', | |
dbOptions: {}, | |
mainroom: 'Main' | |
}; | |
// External dependencies |
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
$(document).ready(function () { | |
//Check if the user is rejoining | |
//ps: This value is set by Express if browser session is still valid | |
var user = $('#user').text(); | |
// show join box | |
if (user === "") { | |
$('#ask').show(); | |
$('#ask input').focus(); | |
} |
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
#!/user/bin/env node | |
/** | |
* Module dependencies. | |
*/ | |
var app = require('../app'); | |
var debug = require('debug')('carsocial-discussions'); | |
var http = require('http'); | |
/** |