Keybase proof
I hereby claim:
- I am dmurawsky on github.
- I am drmurawsky (https://keybase.io/drmurawsky) on keybase.
- I have a public key ASAIzWQBKKkZq8uP71GLE8qcEB3CemKLCzLnnG6wcwhWzgo
To claim this, I am signing this object:
// ---- | |
// Sass (v3.2.19) | |
// Compass (v0.12.7) | |
// ---- | |
$space:65px; | |
$light:#eee; | |
$medium:#ccc; | |
$dark:#aaa; | |
$fontSize: 22px; |
<div class="se-progress"> | |
<div class="active"> | |
<span class="glyphicon glyphicon-map-marker"></span> | |
<span class="text">This is some text</span> | |
<span class="arrow-bg"></span> | |
<span class="arrow"></span> | |
</div> | |
<div class="active"> | |
<span class="glyphicon glyphicon-map-marker"></span> | |
<span class="text">This is text</span> |
import {createElement} from 'react'; | |
import ReactDOM from 'react-dom'; | |
import firebase from 'firebase'; | |
import objectAssign from 'object-assign'; | |
const config = { | |
apiKey: "<YOUR_FIREBASE_API_KEY>", | |
authDomain: "<YOUR_PROJECT_ID>.firebaseapp.com", | |
databaseURL: "https://<YOUR_PROJECT_ID>.firebaseio.com" | |
}; |
import { databse } from 'firebase' | |
const userRef = database().ref('users/' + uid) // Assumes you have the users uid | |
userRef.update({ token, lastFour }) // Assumes you've used Stripe.js to get a card token and lastFour | |
userRef.child('stripeCustomerId').on('value', snap => { | |
let stripeCustomerId = snap.val() | |
if (stripeCustomerId) { | |
userRef.child('charges').push({ | |
amount: 4000, // $40 | |
currency: 'usd', |
public func DotEnv() { | |
guard let path = Bundle.main.path(forResource: "ios", ofType: "env") else { return } | |
let url = URL(fileURLWithPath: path) | |
do { | |
let data = try Data(contentsOf: url) | |
let str = String(data: data, encoding: .utf8) ?? "Empty File" | |
let clean = str.replacingOccurrences(of: "\"", with: "") | |
print(clean) | |
let envVars = clean.components(separatedBy:"\n") |
const fs = require('fs'); | |
const Populate_Index_ES6 = () => { | |
const path = __dirname + '/src/dir'; | |
// Read directory | |
fs.readdir(path + '/components', (err, items) => { | |
let output = ''; | |
// Add import statements for each file | |
for (let i=0; i<items.length; i++) { | |
let file = items[i].substring(0, items[i].length-3); |
const functions = require('firebase-functions') | |
const admin = require('firebase-admin') | |
admin.initializeApp(functions.config().firebase) | |
exports.hourly = functions.https.onRequest((req, res) => { | |
const expiration = Date.now() + * 60 * 60 / 1000 // At least an hour old in seconds | |
const ref = admin.database().ref("space") | |
ref.orderByKey("timestamp").endAt(expiration).once("event", snap => { | |
const vals = snap.val() | |
Object.keys(vals).map(key => { |
I hereby claim:
To claim this, I am signing this object:
import React, { Component } from "react"; | |
import ReactDOM from "react-dom"; | |
import auth0 from "auth0-js"; | |
class App extends Component { | |
constructor(props, cxt) { | |
super(props, cxt); | |
this.componentDidMount = this.componentDidMount.bind(this); | |
this._login = this._login.bind(this); | |
const auth = new auth0.WebAuth({ |