Software Engineer
Brooklyn, New York
Software developer with over six years of web development experience. Passionate about full stack javascript apps and distributed web technologies.
Full Stack Developer
Jan, 2010 – Current
Verifying that +hakimelek is my blockchain ID. https://onename.com/hakimelek |
<script src="script.js"></script> | |
<div id="now" data-username="hakimelek"></div> |
returnDistanceFromVector = function(origin, listOfZipcodes){ | |
library(geosphere) | |
library(ggmap) | |
originCoord = geocode(as.character(origin)) | |
result = data.frame(Zipcode=numeric(), distance= numeric()) | |
for(i in 1:length(listOfZipcodes)) | |
{ |
[ | |
{ | |
"institution": "Alabama A & M University" | |
}, | |
{ | |
"institution": "University of Alabama at Birmingham" | |
}, | |
{ | |
"institution": "Amridge University" | |
}, |
// You have an array of objects in JavaScript. Each one contains a name (a string) and ranking (a number). | |
// Write two functions, one to return the objects ordered by ranking and another to return the average ranking. | |
var order = function (arr) { | |
return arr.sort(function (a, b) { | |
if (a.ranking > b.ranking) { | |
return 1; | |
} | |
if (a.ranking < b.ranking) { | |
return -1; |
var customary = function (str) { | |
var freq = {}; | |
var stringArray = str.split(''); | |
for (let i=0; i<stringArray.length; i++) { | |
let char = stringArray[i]; | |
if (freq.hasOwnProperty(char)) freq[char]++; | |
else { | |
freq[char] = 0; |
export default class SimplePromise { | |
constructor () { | |
this.status = 'pending'; // 3 states pending, resolved, rejected | |
this.result = null; // initially set to null | |
this.callbacks = []; | |
} | |
then(onResolved, onRejected) { | |
if (this.status === 'resolved') | |
return this.resolve(onResolved, onRejected); |
if (process.env.NODE_ENV === 'production') { | |
app.use('/drive/search/public', express.static(__dirname + '/../public'), { | |
maxAge: '1d', | |
setHeaders: setCustomCacheControl | |
}); | |
} else { | |
app.use('/drive/search/public', express.static(__dirname + '/../client/src')); | |
} |
import React from 'react'; | |
import { match, RouterContext, createMemoryHistory } from 'react-router'; | |
import { renderToString } from 'react-dom/server' | |
import { ServerStyleSheet } from 'styled-components' | |
import moment from 'moment'; | |
import { RoutePolicy } from 'meteor/routepolicy'; | |
import { withRenderContextEnvironment, InjectData } from 'meteor/vulcan:lib'; |