Skip to content

Instantly share code, notes, and snippets.

Kyle Johnson kyle-ssg

Block or report user

Report or block kyle-ssg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webpack.dev.config.js
// webpack.config.dev.js
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
const whitelabel = typeof process.env.WHITELABEL === 'undefined' ? false : process.env.WHITELABEL;
const styles = whitelabel ? path.join(__dirname, `../web/styles/whitelabel/${process.env.WHITELABEL}`) : path.join(__dirname, '../web/styles');
module.exports = {
devtool: 'cheap-module-eval-source-map',
mode: 'development',
View gist:8a4bcdc998738e719b71167736f4c1db
// webpack.config.dev.js
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
const whitelabel = typeof process.env.WHITELABEL === 'undefined' ? false : process.env.WHITELABEL;
const styles = whitelabel ? path.join(__dirname, `../web/styles/whitelabel/${process.env.WHITELABEL}`) : path.join(__dirname, '../web/styles');
module.exports = {
devtool: 'cheap-module-eval-source-map',
mode: 'development',
View Write data to Bluetooth Low Energy Devices
import React, {Component, PropTypes} from 'react';
import {BleManager} from 'react-native-ble-plx';
const TheComponent = class extends Component {
displayName: 'TheComponent'
constructor(props, context) {
super(props, context);
this.state = {};
this.manager = new BleManager()
View gist:ddcc0255d5dd66ce572394042282c87d
const admin = require("firebase-admin");
const Twit = require('twit')
const serviceAccount = require("./firebase-service-account.json");
const config = require('../config').twitter;
const T = new Twit(config)
const _ = require('lodash');
const SIMULATE = false;
console.log(JSON.stringify(config, null, 2))
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
View gist:be6c93273aa4304331713be240ab8225
const admin = require("firebase-admin");
const Twit = require('twit')
const serviceAccount = require("./firebase-service-account.json");
const config = require('../config').twitter;
const T = new Twit(config)
const _ = require('lodash');
const SIMULATE = false;
console.log(JSON.stringify(config, null, 2))
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
View README.MD

secured-async-storage

Set salt

When

1: when the user logs in

2: When the user changes their secret word

View gist:4c76cb2b2766d8527ecb8a5ace63c4ad
```secured-async-storage```
# Set salt
**When**
1: when the user logs in
2: When the user changes their secret word
View gist:507413329a25d656b4a355ac78b0ffd4
Set salt
- When
1: when the user logs in
2: When the user changes their secret word
- Process
This is the process whereby combination of the secret word and salt along with a generated challenge is stored for later use.
Generate secret challenge
- When
View gist:0caf45d01eebcbb9f6cd840e71e91517
Set salt
- When
1: when the user logs in
2: When the user changes their secret word
- Process
This is the process of storeing the encrypted secret answer along with a salt.
At this point the previous secured local storage is wiped, storeing a combination of the secret word and salt along with a generated challenge.
If there is local storage data in memory at this point it is re-encrypted using the generated challenge and written to local storage.
View Contribution.md

Contributing

We're always looking to improve this project, open source contribution is encouraged so long as they adhere to our guidelines.

Pull Requests

The Solid State team will be monitoring for pull requests. When we get one, a member of team will test the work against our internal uses and sign off on the changes. From here, we'll either merge the pull request or provide feedback suggesting the next steps.

A couple things to keep in mind:

  • If you've changed APIs, update the documentation.
You can’t perform that action at this time.