Skip to content

Instantly share code, notes, and snippets.

💭
Decentralizing...

Eric Muyser ericmuyser

💭
Decentralizing...
Block or report user

Report or block ericmuyser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9553730
'header': {>"konf/_header.include"/},
'footer': {>"konf/_footer.include"/},
'search': {>"konf/_search.include"/},
'primarySidebar': {>"konf/_search.include"/},
'content': function(context) {
return context.choose(
{>"konf/home.include"/},
{>"konf/brand.include"/},
{>"konf/searchResults.include"/}
@ericmuyser
ericmuyser / server.js
Created May 4, 2014
ImTranslator TTS Server
View server.js
var connect = require('connect');
var http = require('http');
var exec = require('child_process').exec;
var url = require('url');
var app = connect()
.use(function(req, res) {
var queryData = url.parse(req.url, true).query;
var callback = queryData.callback;
@ericmuyser
ericmuyser / script.js
Created May 4, 2014
ImTranslator TTS Spidermonkey Script
View script.js
// ==UserScript==
// @name Japanese Text-To-Speech
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match http://www.memrise.com/course/*/*/edit/
// @copyright 2012+, You
// ==/UserScript==
unsafeWindow.injectTTS = function(ttsURL) {
View gist:fc647b3ad50f6824a56e
dust.helpers["tap"] = function(input, chunk, context) {
// return given input if there is no dust reference to resolve
// dust compiles a string/reference such as {foo} to a function
if (typeof input !== "function") {
return input;
}
var dustBodyOutput = '',
@ericmuyser
ericmuyser / Navbar.js
Created Feb 2, 2015
Exploring how we can integrate LESS directly into React.js components
View Navbar.js
var Navbar = React.createClass({
getInitialState() {
return {
view: 'fullscreen',
top: 100,
left: 0
};
}
@ericmuyser
ericmuyser / NavItem.js
Created Feb 2, 2015
Exploring how we can separate React.js presentation and logic
View NavItem.js
var Navbar = React.createClass({
getInitialState() {
return {
view: 'fullscreen',
top: 100,
left: 0
};
}
@ericmuyser
ericmuyser / pushState
Created Feb 13, 2015
React Router Pushing State
View pushState
var dummyLink = document.createElement('a');
var absolutify = function (url) {
dummyLink.href = url;
return dummyLink;
};
$('body').on('click', 'a', function(e) {
var $anchor = $(this);
View tinymce config
@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div,-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width|height|src|*],script
View gist:777214
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /Applications/MAMP/db/mysql) or
View gist:840169
deb http://http.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib
deb http://php53.dotdeb.org stable all
deb http://packages.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
You can’t perform that action at this time.