- brew install dnsmasq
- brew install nginx
# /usr/local/etc/dnsmasq.conf
no-dhcp-interface=
server=8.8.8.8
addn-hosts=/usr/local/etc/dnsmasq.hosts
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
TextInput, | |
Button | |
} from 'react-native'; | |
import defaultValidations from './react-reform/opt/validations'; |
config.action_mailer.asset_host
assets:precompile
on sidekiq server<img alt="" />
with image disabled by defaultencrypt
helper for token./config shared zlib-dynamic && make && make install
/usr/local/ssl
/usr/local/include/openssl
gem update --system
var fs = require('fs'); | |
var path = require('path'); | |
var mustache = require('mustache'); | |
var onebox = require('onebox'); | |
// custom render method for preview | |
var preview = onebox({ | |
render: function(engine, data, cb) { | |
var tpath = path.join(__dirname, 'templates', engine+'.mustache'); | |
fs.readFile(tpath, function(err, buf) { |
use strict; use warnings; | |
use HTML::Strip; | |
use Devel::Peek; | |
use Test::More tests => 3; | |
use Encode; | |
use utf8; | |
=head1 Workaround for HTML::Strip with utf8 |
if(!String.prototype.format) { | |
String.prototype.format = function() { | |
var cnt = 0; | |
var args = arguments; | |
return this.replace(/(\%s)/g, function(match) { | |
var term = typeof args[cnt] !== 'undefined' ? args[cnt] : match; | |
cnt++; | |
return term; | |
}); | |
}; |
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var handlebars = require('gulp-handlebars'); | |
var wrap = require("gulp-wrap"); | |
gulp.task('partials', function() { | |
return gulp.src('templates/partials/*.html') | |
.pipe(handlebars()) | |
.pipe(wrap('Handlebars.registerPartial("<%= fname(file) %>", Handlebars.template(<%= contents %>))', { | |
}, { |