Skip to content

Instantly share code, notes, and snippets.

declare module 'geofire' {
type EventType = 'ready' | 'key_entered' | 'key_exited' | 'key_moved';
interface GeoQueryCriteria {
center: number[];
radius: number;
}
interface GeoQueryUpdateCriteria {
@shriharip
shriharip / app.js
Created September 11, 2018 11:26
Youtube Scrape: Fixing some issues for my own stuff from the youtube scrape project of Herman and Parth
var express = require('express');
var fs = require('fs');
var request = require('request');
var cheerio = require('cheerio');
var app = express();
//Home page
app.get('/', function(req, res) {
res.sendFile(__dirname + "/index.html");
})
@shriharip
shriharip / gist:59b173392d6b8dffdecd0f9bd5de73b4
Created December 18, 2018 22:37
named and default exports
https://stackoverflow.com/questions/36795819/when-should-i-use-curly-braces-for-es6-import/36796281#36796281
@shriharip
shriharip / staticgen-archive.json
Created December 19, 2018 11:32
STATICGEN.COM DATA ARCHIVE
{"timestamp":1545218989930,"data":{"ace":[{"timestamp":1545218989930,"stars":36,"forks":6,"issues":0}],"acrylamid":[{"timestamp":1545218989930,"stars":291,"forks":41,"issues":44}],"adm-dev-kit":[{"timestamp":1545218989930,"stars":29,"forks":4,"issues":11}],"amsf":[{"timestamp":1545218989930,"stars":177,"forks":91,"issues":3}],"anodize":[{"timestamp":1545218989930,"stars":3,"forks":0,"issues":0}],"antwar":[{"timestamp":1545218989930,"stars":431,"forks":32,"issues":8}],"asimov-static":[{"timestamp":1545218989930,"stars":4,"forks":4,"issues":0}],"assemble":[{"timestamp":1545218989930,"stars":3620,"forks":250,"issues":28}],"awestruct":[{"timestamp":1545218989930,"stars":260,"forks":75,"issues":56}],"bake":[{"timestamp":1545218989930,"stars":22,"forks":3,"issues":0}],"bakeit":[{"timestamp":1545218989930,"stars":1,"forks":0,"issues":0}],"baker":[{"timestamp":1545218989930,"stars":40,"forks":7,"issues":1}],"bang":[{"timestamp":1545218989930,"stars":8,"forks":1,"issues":0}],"bashblog":[{"timestamp":1545218989930,"sta
@shriharip
shriharip / gist:5caf8573c5c570b79b674db09f6dbb19
Created January 3, 2019 16:26
angular form can deactivate
https://stackblitz.com/edit/angular-rgsa51
class NewsListFollowing extends StatefulWidget {
static final PageStorageKey<String> pageKey =
PageStorageKey<String>('newsListFollowing');
final scrollcontroller;
NewsListFollowing({this.scrollcontroller, Key key}) : super(key: key);
@override
_NewsListFollowingState createState() => _NewsListFollowingState();
}
@shriharip
shriharip / mainFiles.md
Created January 8, 2020 12:10
Flutter issue: Blank Screen.

main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:path_provider/path_provider.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
import 'minlandsby.dart';
import 'package:hive/hive.dart';

void main() async {
@shriharip
shriharip / firebase_env.txt
Last active October 16, 2020 06:57
Firebase environment set with json data
firebase functions:config:set env="$(cat env.json)"
firebase functions:config:unset env && firebase functions:config:set env="$(cat env.json)"
example env.json
{
"web": {
"id": "value",
@shriharip
shriharip / helloworld.md
Last active February 6, 2021 11:24
testing gist.io

Hi, this is a test to see how gist.io works

Hello World!

Writing in markdown is nice!

@shriharip
shriharip / keymap.c
Created February 12, 2021 18:55
dactyl manuform keymap
#include QMK_KEYBOARD_H
#define _BASE 0
#define _RAISE 1
#define _LOWER 2
#define _SHORTC 3
// Fillers to make layering more clear