- "Just Another Editor"
- Realtime collaborative editor
- Angular 4 / Bootstrap 4 / Firebase
- Mobile Tie In With Ionic
- "Free Programming Ebooks"
- Turn the free programming ebook repo into a usable and searchable site
- Angular 4 / Bootstrap 4 / Firebase
- Mobile Tie In With Ionic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assuming you have included the firebase script tag above this javascript | |
// For reference here is the tag: <script src="https://cdn.firebase.com/js/client/2.3.2/firebase.js"></script> | |
// Assumes you have already authenticated the user. | |
// Setup your firebase reference | |
var ref = new Firebase('https://your-app.firebaseIO-demo.com/'); | |
// Setup a way to get your userid (Assuming using provided firebase authentication method...) | |
function getUser(authData) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var body = require('human/body'); | |
var emotions = require('human/emotions'); | |
var teen = spawnHuman({age: 13}); | |
const food = ['pizza', 'chicken nuggets', 'mac and cheese']; | |
var life = { | |
'feed': function(item) { | |
if(food.contains(item)){ | |
life.consume(item); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find n next dates from firstDate = "DD/MM/YYYY" always | |
// daysOfTheWeek = ["Monday", "Thursday"] | |
// k = every k weeks | |
function recurringTask(firstDate, k, daysOfTheWeek, n) { | |
var weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; | |
var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; | |
var monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; | |
var firstNDates = []; | |
var firstDay = firstDate.substring(0, 2); |
You can star a repo, which I do when I like something so I can find it easier later. So you end up with tons and tons of starred repo's...
You can watch a repo, but then you get notifications like crazy.
This is basically a list of repo's that I'm involved in some way shape or form, and use this gist to just get to them quickly from anywhere.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign rows = site.data.afcu-projects.size | divided_by: 4.0 | ceil %} | |
{% for i in (1..rows) %} | |
{% assign offset = forloop.index0 | times: 4 %} | |
<div class="row"> | |
{% for proj in site.data.afcu-projects limit:4 offset:offset %} | |
<div class="col-md-3"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">{{proj.title}}</div> | |
<div class="panel-body"> | |
<p>{{proj.description}}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"ngbuild": "ng build --base-href . --watch", | |
"cpbuild": "cp src/electron/* dist", | |
"build-electron": "npm-run-all --parallel ngbuild cpbuild electronrun", | |
"electronrun": "electron dist", | |
"start": "npm run build-electron", |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS | |
deleted file mode 100644 | |
index a7b617655..000000000 | |
--- a/.github/CODEOWNERS | |
+++ /dev/null | |
@@ -1,11 +0,0 @@ | |
-# Lines starting with '#' are comments. | |
-# Each line is a file pattern followed by one or more owners. | |
- | |
-accounts/usbwallet @karalabe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Prisma } = require("prisma-binding"); | |
const prisma = new Prisma({ | |
typeDefs: "./../generated/prisma.graphql", | |
endpoint: "http://localhost:4466", | |
}); | |
const handleIty = async (iterator, callback) => { | |
while (true) { | |
await iterator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const resob = promise => { | |
return promise.then(result => ({ success: true, result })).catch(error => ({ success: false, error })) | |
} | |
const list = getListOfObjectsToHit(); | |
let promises = list.map((value) => { | |
return resob(someAsyncProcess(value)); | |
}) |
OlderNewer