Clear and populate the database with fresh data:
rake db:populate
Clear the database:
rake db:clean
import runtimeEnv from '@mars/heroku-js-runtime-env' | |
const env = runtimeEnv() | |
const dotenv = require('dotenv') | |
dotenv.config() | |
export const { | |
REACT_APP_GRAPHQL_API_URL, | |
REACT_APP_BUGSNAG_KEY, |
# frozen_string_literal: true | |
require 'rails_helper' | |
RSpec.describe Mutations::CreateUser, 'create user mutation' do | |
before(:all) do | |
@basic_mutation = <<-GRAPHQL | |
mutation CreateUser($firstName: String!, $lastName: String!, $ssn: String, $dob: ISO8601Date!) { | |
createUser(firstName: $firstName, lastName: $lastName, ssn: $ssn, dob: $dob) { | |
user { |
Clear and populate the database with fresh data:
rake db:populate
Clear the database:
rake db:clean
From the readme: https://github.com/danhper/asdf-python
If you use pip to install a module like ipython or flask that has a binaries. You will need to run asdf reshim python for the binary to be in your path.
asdf reshim python
prettier --write 'src/**/*.scss' | |
prettier --write 'src/**/*.css' | |
prettier --write 'src/**/*.js' | |
prettier --write 'src/**/*.jsx' | |
prettier --write 'src/**/*.html' | |
prettier --write 'public/**/*.html' |
CREATE GROUP ro_group; | |
CREATE USER <user_name> WITH password '<password>'; | |
ALTER GROUP ro_group ADD USER <user_name>; | |
GRANT USAGE ON SCHEMA "public" TO GROUP ro_group; |
email = "<INSERT_EMAIL_HERE>" | |
form_graph_id = "<INSERT_GRAPH_ID_HERE" | |
user = User.find_by_email | |
form = Form.find(GraphQL::Schema::UniqueWithinType.decode(form_graph_id)[1]) | |
FormTemplate.create!( | |
user_id: user.id, | |
brand_id: user.primary_brand.id, | |
schema: form.schema, |
require 'net/http' | |
def new_access_token(square_application_id, square_secret, square_access_token) | |
url = "https://connect.squareup.com/oauth2/clients/#{square_application_id}/access-token/renew" | |
headers = { | |
'Content-Type': 'application/json', | |
'Authorization': "Client #{square_secret}" | |
} |
Verifying my Blockstack ID is secured with the address 1NMMG2avQ52vbDc1chhXTBPVCB1tA7hJiZ https://explorer.blockstack.org/address/1NMMG2avQ52vbDc1chhXTBPVCB1tA7hJiZ |
/* ./webpack-dev-server */ | |
const webpack = require('webpack'); | |
const WebpackDevServer = require('webpack-dev-server'); | |
const chalk = require('chalk'); | |
const webpackConfig = require('./config/webpack.config.js'); | |
const webpackDev = new WebpackDevServer(webpack(webpackConfig), { | |
contentBase: '/webpack/', | |
stats: { |