Skip to content

Instantly share code, notes, and snippets.

View rijine's full-sized avatar
🎯
Focusing

Rijin Elayambari rijine

🎯
Focusing
  • London
View GitHub Profile
@rijine
rijine / index.html
Created January 20, 2017 10:21 — forked from d3noob/.block
Collapsible tree diagram in v4
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 3px;
}
@rijine
rijine / graphQLUtils.ts
Created June 27, 2017 11:38 — forked from matthewdenobrega/graphQLUtils.ts
GraphQL query generator
// Angular imports
import { isArray, isBlank, isDate, isNumber, isStringMap, isPresent, isString } from 'angular2/src/facade/lang'
export class GraphQLUtils {
static createMutation(data: Object, dataDefinition: Object, method: string, mutationName?: string): string {
if (!method || !data) { return null }
let mutation: string = (mutationName || method) + '{' + method
mutation += '(' + GraphQLUtils.flattenObject(data) + ')'
@rijine
rijine / README.md
Created January 19, 2018 14:45 — forked from btroncone/README.md
angular 2 basic counter - 1

angular 2 basic counter

Basic counter in Angular 2.