Skip to content

Instantly share code, notes, and snippets.

View krsjoseph's full-sized avatar
🏠
Working from home

krsjoseph

🏠
Working from home
View GitHub Profile
const fs = require('fs')
const util = require('util')
const puppeteer = require('puppeteer');
const videoshow = require('videoshow');
const uuid = require('uuid/v4');
const md = util.promisify(fs.mkdir);
/**
scrape wikipedia history based on being pased a url

Keybase proof

I hereby claim:

  • I am krsjoseph on github.
  • I am krsjoseph (https://keybase.io/krsjoseph) on keybase.
  • I have a public key ASBUqA5Ak-clHNzFs2W5FTQwGclsu7-9eeXre4YzaAhgOAo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"use strict";
var path = require("path");
var webpack = require("webpack");
var HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
devtool: "eval",
target: "electron",
entry: [
class WalletService {
async createWallet(){
const response = await fetch('bcoin-api')
const wallet = await response.json()
return wallet
}
}
using System.Collections.Generic;
namespace Infotech.Procurement.Requisition.Application.User.Dto
{
public class BasicUserInfo
{
public string id { get; set; }
public List<object> businessPhones { get; set; }
public string displayName { get; set; }
public string givenName { get; set; }
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
class Dummy extends Component {
render() {
return (
<div>
<TextField
hintText="Name"
name="requestName"
let array = [[1,2,[3]],4];
const flatten = arr => arr.reduce((a, b) => a.concat(Array.isArray(b)
? flatten(b)
: b), []);
let newArray = flatten(array);
// Old Array
console.log(array)
for (var i = 1; i <= 100; i++) {
var f = i % 3 == 0, b = i % 5 == 0;
console.log(f ? b ? "FizzBuzz" : "Fizz" : b ? "Buzz" : i);
}