Skip to content

Instantly share code, notes, and snippets.

@maurop123
maurop123 / the_catalog.js
Last active January 25, 2023 06:28
A catalog of talks from the Great Freedom Teachings
window.the_catalog = {"03_11_11 An Open System of Intelligence.mp3": "https://gf-media.s3.amazonaws.com/Livestreams from Bolinas/03_11_11 An Open System of Intelligence.mp3", "7.23.07 P Int 9 Q&A pm.mp3": "https://gf-media.s3.amazonaws.com/Free%20cc%20audio%20downloads/7.23.07%20P%20Int%209%20Q&A%20pm.mp3", "11_12_07 Never Give Up.mp3": "https://gf-media.s3.amazonaws.com/Free%20cc%20audio%20downloads/11_12_07%20Never%20Give%20Up.mp3", "03_28_07 The Storehouse of Great Benefit.ed.mp3": "https://gf-media.s3.amazonaws.com/Free%20cc%20audio%20downloads/03_28_07%20The%20Storehouse%20of%20Great%20Benefit.ed.mp3", "12_21_07 One Simple Change.ed.mp3": "https://gf-media.s3.amazonaws.com/Free%20cc%20audio%20downloads/12_21_07%20One%20Simple%20Change.ed.mp3", "04_28_11 Take Residence in OI.mp3": "https://gf-media.s3.amazonaws.com/Livestreams from Bolinas/04_28_11 Take Residence in OI.mp3", "02_23_11 Total Power-Total Clarity.mp3": "https://gf-media.s3.amazonaws.com/Livestreams from Bolinas/02_23_11 Total Power-Total Cla
@maurop123
maurop123 / package.json
Last active July 11, 2017 14:34
bundling vue with browserify
{
"name": "simple-vue-starter",
"version": "1.0.0",
"description": "vue start app boilerplate",
"main": "index.js",
"config": {
"browserifyTransforms": "-t [babelify ext .js .html] -t scssify -g browserify-css -t [stringify ext .html]"
},
"scripts": {
"test": "ava src/**/*.spec.js",
// get /stories?uid=(string|undefined)
{
"blobs": [
"<p>En pleno coraz&#xF3;n de Europa, escuchar criterios discriminatorios contra la mujer es poco usual. Y mucho m&#xE1;s si quien los pronuncia es un mandatario extranjero que ha llegado en visita oficial y es acogido por los m&#xE1;s altos cargos del pa&#xED;s sede.</p>",
"<p><img alt=\"Aisha Buhari\" title=\"Aisha Buhari\" height=\"480\" width=\"338\" class=\"media-element file-full\" src=\"http://stage.telemundo.com/sites/nbcutelemundo/files/styles/large/public/ap_16288474753222.jpg?itok=JajMh368\">",
"<p>En medio de una rueda de prensa conjunta, al mandatario africano le preguntaron cu&#xE1;l era el pronunciamiento pol&#xED;tico de su esposa con respecto a la situaci&#xF3;n interna de su pa&#xED;s.</p>"
],
"title": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"heroImg": "http://...",
@maurop123
maurop123 / .block
Last active August 29, 2016 18:24
Miami Budget
license: mit
@maurop123
maurop123 / simple-event-source-db.js
Created August 26, 2016 18:00
Simple event source db
process.stdin.resume();
process.stdin.setEncoding("ascii");
var input = "";
process.stdin.on("data", function (chunk) {
input += chunk;
});
process.stdin.on("end", function () {
handleInput(input)
});
@maurop123
maurop123 / ngrxintro.md
Created August 10, 2016 17:17 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@maurop123
maurop123 / superFlatten.js
Last active July 26, 2016 23:32
Flatten array
var test = [[1,2,[3]],4,[5,[6],[[7,8],9]],10]
var superFlatten = function(arr) {
return arr.reduce(function(acc, curr) {
// If item in array is an array, superFlatten(it) then concat, else just concat
return (Array.isArray(curr)) ? acc.concat(superFlatten(curr)) : acc.concat(curr)
}, [])
}
console.log(superFlatten(test))