Skip to content

Instantly share code, notes, and snippets.

View pracplayopen's full-sized avatar

pracplay open code pracplayopen

View GitHub Profile
@pracplayopen
pracplayopen / BellmanFord.cs
Created October 25, 2021 15:04 — forked from pczajkowski/BellmanFord.cs
Bellman Ford Algorithm in C#
using System;
using System.Collections.Generic;
using System.Linq;
// Adapted from JavaScript example in The Imposter's Handbook by Rob Conery
namespace BellmanFord
{
class Path
{
@pracplayopen
pracplayopen / README.md
Created July 20, 2021 01:34 — forked from nyancodeid/README.md
Make RESTful API with Google Apps Script and SpreadSheet

Google Script CRUD

By Ryan Aunur Rassyid

Simply create RESTful API with Google Script and store it to Google SpreadSheet like a Pro.

@pracplayopen
pracplayopen / netboot.nix
Created February 9, 2021 03:45 — forked from erincandescent/netboot.nix
netbooting a raspberry pi running alpine with nix
# dhcp server settings:
# dhcp-mac=set:rpi,b8:27:eb:*:*:*
# dhcp-boot=tag:rpi,boot,10.69.69.179
{ lib, stdenv, config, pkgs, ... }:
let
alpineRelease = "3.11";
alpineRevision = "2";
alpineVersion = "${alpineRelease}.${alpineRevision}";
@pracplayopen
pracplayopen / dialog.html
Created April 14, 2020 00:29 — forked from coinsandsteeldev/dialog.html
Google Sheets script to allow multi-select in cells with data-validation (adapted from https://www.youtube.com/watch?v=dm4z9l26O0I)
<!DOCTYPE html>
<html>
<head>
<script>
var data
var formId = 'form'
function drawForm() {
if (!data) return
var outputEl = document.getElementById(formId);
@pracplayopen
pracplayopen / nunut2xunit.cs
Created January 11, 2020 03:27 — forked from detunized/nunut2xunit.cs
Convert NUnit to xUnit
// Copyright (C) 2019 Dmitry Yakimenko (detunized@gmail.com).
// Licensed under the terms of the MIT license. See LICENCE for details.
using System;
using System.IO;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
@pracplayopen
pracplayopen / cik_dict.py
Created May 5, 2018 02:15 — forked from dougvk/cik_dict.py
(stock ticker -> CIK) dictionary using SEC EDGAR
import re
from cPickle import dump
from requests import get
DEFAULT_TICKERS = ['goog', 'aapl']
URL = 'http://www.sec.gov/cgi-bin/browse-edgar?CIK={}&Find=Search&owner=exclude&action=getcompany'
CIK_RE = re.compile(r'.*CIK=(\d{10}).*')
cik_dict = {}
for ticker in DEFAULT_TICKERS: