Skip to content

Instantly share code, notes, and snippets.

View aleksandar-b's full-sized avatar
:electron:
Focusing

Aleksandar.B aleksandar-b

:electron:
Focusing
View GitHub Profile
@aleksandar-b
aleksandar-b / .block
Created September 2, 2017 08:25
Undergraduate Major Disciplines that Co-Occur in Fall 2014
license: mit
@aleksandar-b
aleksandar-b / opentok_multiple_sessions.html
Created January 13, 2017 08:18 — forked from doomhz/opentok_multiple_sessions.html
OpenTok Multiple sessions and one publisher example
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>OpenTok API Sample &#8212; Basic Tutorial</title>
<link href="samples.css" type="text/css" rel="stylesheet" >
<script src="http://staging.tokbox.com/v0.91/js/TB.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
var RP = require("request-promise");
async () => {
try {
var sites = await Promise.all([
RP("http://www.google.com"),
RP("http://www.apple.com"),
RP("http://www.yahoo.com")
Javascript The Good Parts - Crockford
Principles of Object Oriented JavaScript - Zakas // important
YDKJS - `this` part - Simpson
Prototypes in Javascript - https://sporto.github.io/blog/2013/02/22/a-plain-english-guide-to-javascript-prototypes/
JavaScript - Understanding the weird parts. Antony Alicea
Functional Programming in JavaScript - Practice : http://reactivex.io/learnrx/
NodeJS - Antony Alicea
Understanding ES6 - Zakas
Visualisation
[
{
"close": 194.84
},
{
"close": 194.93
},
{
"close": 180.05
},
@aleksandar-b
aleksandar-b / data-structure.js
Created July 9, 2016 17:42 — forked from sararob/data-structure.js
Role-based security in Firebase
/*
This example shows how you can use your data structure as a basis for
your Firebase security rules to implement role-based security. We store
each user by their Twitter uid, and use the following simplistic approach
for user roles:
0 - GUEST
10 - USER
20 - MODERATOR
(function() {
var assetMap = {
'img/icons/ic_euro_24px.svg': '<svg viewBox="0 0 24 24" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"><g id="euro" sketch:type="MSLayerGroup" transform="translate(4.928571, 3.000000)"><path d="M13.3295171,13.848956 C12.7717614,14.1408877 11.5268981,14.5372503 10.3117026,14.5372503 C8.98732947,14.5372503 7.74127945,14.1408877 6.89515215,13.1855827 C6.49641614,12.7381914 6.20567113,12.1258468 6.0205437,11.3319349 L12.6685173,11.3319349 L12.6685173,9.45217947 L5.65147555,9.45217947 L5.65147555,9.02852246 C5.65147555,8.73659074 5.65147555,8.47432688 5.67639655,8.20731616 L12.669704,8.20731616 L12.669704,6.32756069 L6.07513256,6.32756069 C6.26263342,5.63926639 6.52371057,5.03048195 6.92363329,4.60682495 C7.74246616,3.62541221 8.91019304,3.17564749 10.1550564,3.17564749 C11.3168497,3.17564749 12.4311744,3.52098135 13.1194687,3.81172636 L13.8587917,0.793911872 C12.9046734,0.371441579 11.4770561,0 9.88685892,0 C7.3722113,0 5.25273954,1.00514702 3.77172009,2.7282562 C2.92559
// /*jslint browser: true*/
// /*global $, jQuery, alert*/
// /*jshint strict: true */
// /*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
//
var counter = 0;
$(document).ready(function () {
$('.clickable').on('click',function(){
@aleksandar-b
aleksandar-b / README.md
Created May 25, 2016 07:35
Earth at Night

This is a browsable map of NASA's "Earth at Night" data, showing the human-generated light emanating from Earth at night. This is a nice approximation of population density.

Draws from:

Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS). Map drawn with Leaflet.js.

Built with blockbuilder.org

<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
*{