-
Get started • • BigchainDB
-
Kadena: Scalable Blockchain | Smarter Contracts
-
kadena-io/pact: The Pact Smart Contract Language
View blockchain-"research".md
View fp-lenses.js
// FP Lenses | |
const lens = get => set => ({ get, set }); | |
const view = lens => obj => lens.get(obj); | |
const set = lens => val => obj => lens.set(val)(obj); | |
const over = lens => fn => obj => set(lens)(fn(view(lens)(obj)))(obj); | |
const lensProp = key => lens(prop(key))(assoc(key)); |
View InfluxDB_cheatsheet.md
InfluxDB Cheatsheet
Connect to InfluxDB using the commandline:
$ influx
Create a database foo:
CREATE DATABASE foo
View store-wrapper.js
import React from 'react'; | |
import {Provider} from 'mobx-react'; | |
const stub = () => true; | |
export const exampleStore = { | |
app: {}, | |
auth: { | |
checkAuth: stub | |
}, |
View instructions.txt
# Requirements | |
* Python 2.7 | |
* Google Chrome | |
* ChromeDriver - WebDriver for Chrome | |
- Download the latest chromedrive which is 2.28 from here - https://sites.google.com/a/chromium.org/chromedriver/downloads | |
- Extract and move `chromedriver` file to `/usr/local/bin/chromedriver` | |
- git clone https://github.com/li-xinyang/OS_FrontendMaster-dl | |
- cd OS_FrontendMaster-dl |
View localStorage.js
// ./__mocks__/localStorage.js | |
let mockStorage = {}; | |
module.exports = window.localStorage = { | |
setItem: (key, val) => Object.assign(mockStorage, {[key]: val}), | |
getItem: (key) => mockStorage[key], | |
clear: () => mockStorage = {} | |
}; | |
View letsencrypt_2019.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)
Virtual hosts
Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
View compile.js
#!/usr/bin/env node | |
var fs = require('fs'); | |
var path = require('path'); | |
var sass = require('node-sass'); | |
var ENV = process.env.SASS_ENV || 'development'; | |
var file = 'variables.scss'; | |
//if in dev, directly pass file to sass | |
if (ENV === "development") { |
View _verify-repair-permissions-disk.md
Verify and Repair Disk Permissions via Terminal (Mac OS X)
Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
View LDAPjs New User
var ldap = require('ldapjs'); | |
var ssha = require('node-ssha256'); | |
var BASE = 'ou=Users,dc=example,dc=org'; | |
// default port for ldaps | |
var URL = 'ldaps://ldap.example.org/:636'; | |
// user and pass are for existing user with rights to add a user |
NewerOlder