Skip to content

Instantly share code, notes, and snippets.

View OR13's full-sized avatar
💭
Building tools for Self Sovereign Identity and Decentralized App Devs

Orie Steele OR13

💭
Building tools for Self Sovereign Identity and Decentralized App Devs
View GitHub Profile
@aj-stein-nist
aj-stein-nist / nvd_cves_in_kev.json
Created July 23, 2023 19:07
NVD CVE records with CISA KEV entries from July 2023 pull
This file has been truncated, but you can view the full file.
[
{
"cve": {
"id": "CVE-2002-0367",
"published": "2002-06-25T04:00:00",
"last_modified": "2018-10-12T21:31:21.067000",
"descriptions": [
{
"lang": "en",
@pedrouid
pedrouid / webcrypto-examples.md
Created December 15, 2018 01:07
Web Cryptography API Examples
@axic
axic / swarmdemo.js
Created July 15, 2016 16:24
Web3 demo code for Swarm
//
// Needs web3.js from https://github.com/axic/web3.js/tree/swarm
//
var Web3 = require('web3')
var url = require('url')
var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'))
try {
web3.eth.defaultAccount = web3.eth.coinbase
@joar
joar / jq-insert-var.sh
Last active July 25, 2024 00:55
Add a field to an object with JQ
# Add field
echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}'
# {
# "hello": "world",
# "foo": "bar"
# }
# Override field value
echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}'
{

Angular2 + JSPM cheat sheet

First time setup

  • install jspm beta: npm install -g jspm@beta
  • set up your project: jspm init
  • install dependencies: jspm install angular2 reflect-metadata zone.js es6-shim

This will create a jspm_packages folder, and a config.js file.

Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate