Skip to content

Instantly share code, notes, and snippets.

import React, { Fragment, Component } from 'react';
import { connect } from 'airlytics';
import _ from 'lodash';
import State from '../../state';
import { styled, css, media } from 'components/Theme/Styles';
import { FacebookF } from 'styled-icons/fa-brands/FacebookF.cjs';
import { Twitter } from 'styled-icons/fa-brands/Twitter.cjs';
import { LinkedinIn } from 'styled-icons/fa-brands/LinkedinIn.cjs';
const ShareMessage = styled.div`
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) {
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) {
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) => {
<script>
jQuery(function($) {
$('#form-field-2').val(moment.tz.guess())
});
</script>
<!-- http://momentjs.com/ -->
<script>
_dcq.push(['identify', { time_zone: moment.tz.guess() } ]);
</script>
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
var conf = {
port: 5000,
debug: false,
dbPort: 6379,
dbHost: '127.0.0.1',
dbOptions: {},
mainroom: 'Main'
};
// External dependencies
$(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();
}
#!/user/bin/env node
/**
* Module dependencies.
*/
var app = require('../app');
var debug = require('debug')('carsocial-discussions');
var http = require('http');
/**