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
(function () {
/*** Inspiration https://stripe.com/docs/checkout ***/
var script = document.getElementById("widget");
var options = {
additionaldescription: script.dataset.additionaldescription,
[{"id":1,"gender":"Male","first_name":"Arthur","last_name":"Nguyen","email":"[email protected]","ip_address":"51.44.120.242"},
{"id":2,"gender":"Female","first_name":"Sharon","last_name":"Ray","email":"[email protected]","ip_address":"184.58.49.74"},
{"id":3,"gender":"Female","first_name":"Nicole","last_name":"Owens","email":"[email protected]","ip_address":"82.45.210.237"},
{"id":4,"gender":"Male","first_name":"Craig","last_name":"Cook","email":"[email protected]","ip_address":"244.56.138.68"},
{"id":5,"gender":"Male","first_name":"Ronald","last_name":"Ruiz","email":"[email protected]","ip_address":"103.147.140.151"},
{"id":6,"gender":"Male","first_name":"William","last_name":"Gomez","email":"[email protected]","ip_address":"73.169.234.70"},
{"id":7,"gender":"Male","first_name":"Stephen","last_name":"Hall","email":"[email protected]","ip_address":"211.210.103.193"},
{"id":8,"gender":"Male","first_name":"Mark","last_name":"Phillips","email":"[email protected]","ip_address":"213.136.221.88"},
{"id":9,"ge
@aleksandar-b
aleksandar-b / _.md
Last active February 27, 2016 14:15
test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aleksandar-b
aleksandar-b / gist:490189cab4829970bab9
Last active February 17, 2016 16:15
FCC cities with geolocation
[{"name":"Kabul","facebook":"https://www.facebook.com/groups/free.code.camp.kabul/","longitute":69.17233,"latitude":34.52813,"population":3043532},{"name":"Tirana","facebook":"https://www.facebook.com/groups/free.code.camp.tirana/","longitute":19.81889,"latitude":41.3275,"population":374801},{"name":"Algiers","facebook":"https://www.facebook.com/groups/free.code.camp.Algiers/","longitute":3.04197,"latitude":36.7525,"population":1977663},{"name":"Oran","facebook":"https://www.facebook.com/groups/free.code.camp.oran/","longitute":-0.64167,"latitude":35.69111,"population":645984},{"name":"Luanda","facebook":"https://www.facebook.com/groups/free.code.camp.luanda/","longitute":13.23432,"latitude":-8.83682,"population":2776168},{"name":"Buenos Aires","facebook":"https://www.facebook.com/groups/free.code.camp.buenos.aires/","longitute":-58.37723,"latitude":-34.61315,"population":13076300},{"name":"La Plata","facebook":"https://www.facebook.com/groups/free.code.camp.la.plata/","longitute":-75.89232,"latitude":2.39341
@aleksandar-b
aleksandar-b / getCircleTotalLength()
Created February 10, 2016 17:15
SVG method for circle
function getCircleTotalLength (element) {
var r = document.querySelector(element).getAttribute("r");
return 2 * Math.PI * r;
}
@aleksandar-b
aleksandar-b / getCirclePointAtLength()
Created February 10, 2016 17:14
getCirclePointAtLength() method for SVG circle element
function getCirclePointAtLength(element, point)
{
var element = document.querySelector(element);
var r = +element.getAttribute("r");
var x = +element.getAttribute("cx");
var y = +element.getAttribute("cy");
<body class="backg">
<div class="row">
<div class="col-xs-12">
<div class="col-xs-4"></div>
<div class="col-xs-4 border">
<div class="col-xs-4 border l h"> Users</div>
<div class="col-xs-4 border h m">Online</div>
<div class="col-xs-4 border h r">Offline</div>
<div class="col-xs-12"> <div class="input-group gr">