-
Get started • • BigchainDB
-
Kadena: Scalable Blockchain | Smarter Contracts
-
kadena-io/pact: The Pact Smart Contract Language
This file contains 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
#!/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") { |
This file contains 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
// ./__mocks__/localStorage.js | |
let mockStorage = {}; | |
module.exports = window.localStorage = { | |
setItem: (key, val) => Object.assign(mockStorage, {[key]: val}), | |
getItem: (key) => mockStorage[key], | |
clear: () => mockStorage = {} | |
}; | |
This file contains 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
pdp-mbp: ~ $ cat hostlist.txt | |
sfo-crawl-4 | |
sfo-crawl-5 | |
sfo-crawl-6 | |
sfo-crawl-7 | |
sfo-crawl-8 | |
sfo-crawl-9 | |
sfo-crawl-11 | |
sfo-crawl-14 | |
pdp-mbp: ~ $ csshX --host hostlist.txt |
This file contains 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 React from 'react'; | |
import {Provider} from 'mobx-react'; | |
const stub = () => true; | |
export const exampleStore = { | |
app: {}, | |
auth: { | |
checkAuth: stub | |
}, |
This file contains 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
package crypto | |
import ( | |
"crypto/sha256" | |
) | |
// NewSHA256 ... | |
func NewSHA256(data []byte) []byte { | |
hash := sha256.Sum256(data) | |
return hash[:] |
This file contains 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 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 |
This file contains 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
// 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)); |
This file contains 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
# Step 1 : Start minio server with non-persistent data storage policy | |
# | |
# Description: -p 9000:9000: Minio server runs on port 9000 inside the docker container, -e 9000:9000 command is exposing the internal port on | |
# on external port. | |
# | |
# -e "MINIO_ACCESS_KEY=access_key": It sets an envrionment variable inside container named as MINIO_ACCESS_KEY | |
# with the value provided by user. It will be used when a user wants to access | |
# minio server | |
# | |
# -e "MINIO_SECRET_KEY=access_key_secret": It sets an envrionment variable inside container named as MINIO_SECRET_KEY |
OlderNewer