This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const crypto = require('crypto'), | |
| sha = crypto.createHash('sha1'), | |
| hyperdb = require('hyperdb'), | |
| hyperdiscovery = require('hyperdiscovery'), | |
| cms = require('random-access-idb')('cms'), | |
| webrtc = require('webrtc-swarm'), | |
| signalhub = require('signalhub'), | |
| hyperdrive = require('hyperdrive'), | |
| pump = require('pump'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var crypto = require('crypto'), | |
| sha = crypto.createHash('sha1'), | |
| hyperdb = require('hyperdb'), | |
| hyperdiscovery = require('hyperdiscovery'), | |
| cms = require('random-access-idb')('cms'), | |
| webrtc = require('webrtc-swarm'), | |
| signalhub = require('signalhub'), | |
| hyperdrive = require('hyperdrive'), | |
| pump = require('pump'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const IPFS = require('ipfs') | |
| const OrbitDB = require('orbit-db') | |
| const addr = "/orbitdb/Qme1WqfNvv1AQLopg1VLE8ZiDF1A4njPaBmXCB236cb1sA/CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVPH/bwvyPI+UGzRUGzqAhg20DB9LMQ9xbrf6imcUEBl8kR2Nb+jyO+lzWQ1Lk9b7+3FPMc+ck3kSXXcOzUeJZ0L3aEy14XL8XwawJVKKdgZucWJBkMhZb/w30O7KBR8vB+/sNo7TUNlTud1GZ/zwXOm3aMgMpB8Z/tHbvw6lKwzOlleicMJsGdQu870od7uudNAOp7ePDR5z/bDYm4LJGdESJwJzb9UfdiN13EkbW8gfMXLd7+MW+lCmyEau+j4bxzu+5ljlpp+Y+25MCeG2KugMMrWXKER+8ZICXOPM5WcVokSea1UZ2vhTS1zIaRrm+ptEu5XKVTxby15hGXrbnAgMBAAE=" | |
| const ipfs = new IPFS({ | |
| config: { | |
| Addresses: { | |
| Swarm: [ | |
| '/dns4/wrtc-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const IPFS = require('ipfs') | |
| const OrbitDB = require('orbit-db') | |
| const ipfs = new IPFS({ | |
| config: { | |
| Addresses: { | |
| Swarm: [ | |
| '/dns4/wrtc-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star' | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var crypto = require('crypto'), | |
| hyperdb = require('hyperdb'), | |
| cms = require('random-access-idb')('cms')('cms.txt'); | |
| var db = hyperdb((filename) => { | |
| return cms; | |
| }); | |
| db.put("hello", "world", (err) => { | |
| if(err) throw err; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| * { | |
| margin: 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| alias 🙋=whoami | |
| alias 🤔=pwd | |
| alias 📃=ls | |
| alias 📁=cd | |
| alias 👇='cd ..' | |
| alias ✨📁=mkdir | |
| alias 👈=touch | |
| alias ❌=rm | |
| alias 📝=nano |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _XOPEN_SOURCE | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #include <math.h> | |
| struct Task { | |
| char start[8]; | |
| char end[8]; | |
| char name[20]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import cookielib | |
| import mechanize | |
| import urllib | |
| import urllib2 | |
| from bs4 import BeautifulSoup | |
| from pymongo import MongoClient | |
| # Database stuff - JBG | |
| #client = MongoClient() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cookielib | |
| import urllib | |
| import urllib2 | |
| import re | |
| import mechanize | |
| import string | |
| import sys | |
| from bs4 import BeautifulSoup | |
| from random import randint | |
| import random |