Skip to content

Instantly share code, notes, and snippets.

View rajinwonderland's full-sized avatar
🛰️
Exploring

Raj K Singh rajinwonderland

🛰️
Exploring
View GitHub Profile
@rajinwonderland
rajinwonderland / useGeolocation.ts
Created November 7, 2019 22:02
react-hooks-collection
// originally from 'react-use' library!
import { useEffect, useState } from 'react';
export interface GeoLocationSensorState {
loading: boolean;
accuracy: number | null;
altitude: number | null;
altitudeAccuracy: number | null;
heading: number | null;
@rajinwonderland
rajinwonderland / useGeolocation.ts
Created November 7, 2019 22:02
react-hooks-collection
// originally from 'react-use' library!
import { useEffect, useState } from 'react';
export interface GeoLocationSensorState {
loading: boolean;
accuracy: number | null;
altitude: number | null;
altitudeAccuracy: number | null;
heading: number | null;
@rajinwonderland
rajinwonderland / canada.geojson
Created September 4, 2019 19:53
Canadian Provinces
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajinwonderland
rajinwonderland / Problem Solving 101.md
Created July 24, 2019 03:29
Problem Solving Exercise – WIP

Problem Solving 101

Background

We have an uncleansed raw dataset containing EPA Water System Violations. These violations are associated with Water Districts or Water Systems who supply our everyday drinking water.

The Data

In a real world situation, you'd be responsible for cleansing and wrangling the dataset into a readable datamodel. However, for this exercise, you will be delivered the sampled set in a pre-cleansed SQL database environment

@rajinwonderland
rajinwonderland / us_states.geojson
Created June 17, 2019 19:07
US States GeoJson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajinwonderland
rajinwonderland / dateScalarResolver.ts
Last active June 14, 2019 00:41
GraphQL Scalars - TS Edition
import { GraphQLScalarType, Kind } from 'graphql';
export const dateScalar = new GraphQLScalarType({
name: 'Date',
description:
'ISO8601 Date String – An internationally accepted way to represent dates and times using numbers.',
serialize(value): string {
return Number.isNaN(Date.parse(value)) ? new Date(value).toISOString() : value;
},
parseValue(value) {
@rajinwonderland
rajinwonderland / stadiums.geojson
Created June 6, 2019 22:01
NFL Stadiums – GeoJson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajinwonderland
rajinwonderland / s.css
Created April 15, 2019 21:42
Square Challenge cssbattle.dev
body{background:#5d3a3a;margin:0}div{width:50%;height:66.5%;background:#b5e0ba}
@rajinwonderland
rajinwonderland / Guide.md
Last active November 28, 2022 20:58
VS Code Syntax Highlighting on Keynote

A more detailed guide for copying VSCode themed syntax highlighting over to Keynote. Original Article

Prerequisites

  • VSCode Installed
  • Your favorite or theme installed and configured in your settings.
  • Keynote Installed
@rajinwonderland
rajinwonderland / NEWS API Enums
Created January 30, 2019 00:45
Created from doculet
.enums.graphql
[source, graphql ]
----
enum SortBy {
relevancy
popularity
publishedAt
}
enum Category {