Skip to content

Instantly share code, notes, and snippets.

🙀
wow!

Bobby Richter secretrobotron

🙀
wow!
Block or report user

Report or block secretrobotron

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 hekima-log.json
{
"quiz-log": [
{
"week-id": "0",
"completed-date": "05-24-18",
"attempts": [
[0, "i don't understand this quiz"],
[2, "i feel great"]
]
},
@secretrobotron
secretrobotron / hekima.json
Last active Apr 7, 2018
JSON Template for Hekima prototype app
View hekima.json
{
"version": 0,
"weeks": [
{
"id": "0",
"title": "Week 1",
"topic": "Which fruits are best on a rainy day?",
"video": "videos/week1.mp4",
"quiz": {
"questions": [
View gist:92a94910697c8045c4e7
Coverage: 79.20% (522/2510)
services/api/handlers/elements.js missing coverage on line(s): 4, 13, 14, 17, 27, 32, 33, 36, 39, 46, 52, 53, 56, 57, 60, 71, 72, 74, 75, 78, 79, 82, 89, 90, 93, 94, 95, 98, 105, 112, 122, 127, 128, 131, 138, 145, 153
services/api/handlers/pages.js missing coverage on line(s): 5, 14, 15, 16, 18, 21, 28, 35, 46, 51, 52, 55, 63, 69, 70, 73, 74, 77, 88, 89, 90, 92, 93, 96, 97, 100, 101, 104, 112, 113, 114, 116, 119, 120, 121, 122, 125, 132, 139, 149, 154, 155, 158, 165, 172, 179, 187
services/api/handlers/projects.js missing coverage on line(s): 5, 14, 15, 18, 25, 34, 38, 39, 42, 53, 59, 60, 63, 64, 67, 75, 81, 82, 85, 88, 95, 102, 103, 106, 109, 116, 123, 124, 127, 130, 137, 143, 144, 147, 150, 157, 164, 165, 168, 171, 181, 187, 188, 191, 198, 205, 213, 219, 220, 223, 229, 239, 244, 245, 248, 255, 262, 270
services/api/handlers/users.js missing coverage on line(s): 4, 7, 8, 11, 13, 14, 17, 18, 21, 30, 31, 39, 40, 41, 43, 44, 46, 49, 58, 61, 62, 65, 66, 69, 71, 72, 75, 76, 79, 80, 83,
@secretrobotron
secretrobotron / gist:52973ecd6bbaeddb33ef
Created Jul 21, 2015
filter and prioritize by specific country
View gist:52973ecd6bbaeddb33ef
SELECT * FROM projects INNER JOIN users ON users.id = projects.user_id WHERE projects.deleted_at IS NULL AND projects.featured = TRUE
ORDER BY
CASE country
WHEN 'CA' THEN 1
ELSE 2
END , projects.created_at DESC LIMIT 50 OFFSET 0;
View gist:651f534a5191dbe360a2
// Remixed from http://eeemo.net/ and http://stackoverflow.com/questions/6579844/how-does-zalgo-text-work
// data set of leet unicode chars
//---------------------------------------------------
//those go UP
var zalgo_up = [
'\u030d', /* Ì */ '\u030e', /* ÌŽ */ '\u0304', /* Ì„ */ '\u0305', /* Ì… */
'\u033f', /* Ì¿ */ '\u0311', /* Ì‘ */ '\u0306', /* ̆ */ '\u0310', /* Ì */
'\u0352', /* ͒ */ '\u0357', /* ͗ */ '\u0351', /* ͑ */ '\u0307', /* ̇ */
'\u0308', /* ̈ */ '\u030a', /* ̊ */ '\u0342', /* ͂ */ '\u0343', /* ̓ */
@secretrobotron
secretrobotron / custom-element-thimble.html
Created May 6, 2014
test custom element for thimble (ultra portable!)
View custom-element-thimble.html
<script>
(function () {
// super secret special shim for loading Polymer elements in weird situations
if (!window.Polymer) {
var base = location.protocol === 'https:' ? 'https://appmaker-integration.herokuapp.com' : 'http://localhost:1999/';
var waiting = [];
window.Polymer = function(){waiting.push(arguments)};
["/vendor/polymer/polymer.html", "/ceci/ceci-element.html", "/ceci/ceci-definition.html"].forEach(function(src) {
var l = document.createElement('link');
l.rel="import";
View sample.env
ASSET_HOST=http://localhost:5000
COMPONENTS_BASE_URL=http://localhost:4000
COOKIE_SECRET=I hate working as a janitor for arrogant rich people; so I clean their computer keyboareds with the toilet brush
POSTMARK_API_KEY=
POSTMARK_INBOUND_ADDRESS=
POSTMARK_SMTP_SERVER=
PUBLISH_HOST=localhost:5000
PUBLISH_HOST_PREFIX=http://
STORE=local
REMIX_EMAIL=do-not-reply@mozillalabs.com
View something.js
Polymer('ben', {
ready: function () {
this.foo = 0;
},
count: function () {
this.foo++;
}
});
View ceci-def-with-thumbnail-and-stuff.js
ceci: {
broadcasts: {...},
defaultBroadcasts: [...],
defaultListeners: [...],
listeners: {...},
editable: {...},
thumbnail: getThumbnail(),
tags: ['my', 'favourite', 'things!'],
}
View polymer-closure.html
<polymer-element name="ceci-broadcast-vis">
<template>
<div id="broadcasts" class="channel-visualisation broadcast-channels"></div>
</template>
<script>
(function() {
var signalSpeed = 1;
var bubbleDuration = 1;
Polymer('ceci-broadcast-vis', {
You can’t perform that action at this time.