I hereby claim:
- I am ox on github.
- I am ofxartem (https://keybase.io/ofxartem) on keybase.
- I have a public key whose fingerprint is 03BB 8C0D B263 C8E5 D7C1 5958 0C0B EFBB E65D C950
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(function () { | |
alert('HJAHHA') | |
})() |
<html> | |
<head></head> | |
<body> | |
<script type="text/javascript" src="/components/angular/angular.js"></script> | |
<script type="text/javascript" src="/components/angular-route/angular-route.js"></script> | |
<script type="text/javascript" src="/components/angular-resource/angular-resource.js"></script> | |
<script type="text/javascript" src="/components/angular-cookies/angular-cookies.js"></script> | |
<script type="text/javascript" src="/components/angular-sanitize/angular-sanitize.js"></script> | |
</body> | |
</html> |
// replace the file pointed at | |
angular.module('vendorApp') | |
.filter('replace', function () { | |
'use strict'; | |
// check if str ends with suffix | |
function endsWith(str, suffix) { | |
return str.indexOf(suffix, str.length - suffix.length) !== -1; | |
} |
#include <stdio.h> | |
#include <stdlib.h> | |
double long npowerk(double long n, double long k) { | |
if (k == 0) { | |
return 1; | |
} | |
double long total = n; |
<!doctype html> | |
<html ng-app="todo"> | |
<head> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container" ng-controller="TodoController as todoctrl"> | |
<div class="row"> | |
<h1>Todos</h1> |
require "mkmf" | |
extension_name = "TagLibArtem" | |
taglib_config = find_executable("taglib-config") | |
if taglib_config | |
prefix = `#{taglib_config} --prefix`.strip | |
$CFLAGS += " -I#{prefix}/include" | |
$LDFLAGS += " -L#{prefix}/lib" | |
else |
var k = [1,4,2,5,3,2,2,5,7,8,8,5,3,4,4,4,2,1] | |
function bundle(arr) { | |
var t = {} | |
arr.map(function (x) { | |
if (!t[x]) t[x] = [] | |
t[x].push(x) | |
}) | |
return Object.keys(t).reduce(function (memo, x) { return memo.concat([t[x]])}, []) | |
} |
var k = [1,4,2,5,3,2,2,5,7,8,8,5,3,4,4,4,2,1] | |
function bundle(arr) { | |
var t = {} | |
arr.map(function (x) { | |
if (!t[x]) t[x] = [] | |
t[x].push(x) | |
}) | |
return Object.keys(t).reduce(function (memo, x) { return memo.concat([t[x]])}, []) | |
} |
The polar opinions on various databases always crack me up. If you ask a programmer about a given database they'll either love it for solving all of their problems or hate it for causing them. Most of the time the issue is actually caused by the way the programmer decided to originally model their data. This is a proposal for a program that will automatically handle the way associations are stored in a key-value store and hopefully end some of the mindless debates about how #webscale your favorite #noSQL DB is. | |
Example Schema | |
Throughout this article I’ll use the below schema for a user as an example: | |
{ | |
id: String, | |
name: String, | |
friends: [User] | |
} |