- Clone this repo
yarn
ornpm install
- Create a file
config/secrets.json
-- Only the first 4 fields are required
{
"api_key" : "",
"shopName" : "",
"password" : "",
// README: https://gist.github.com/newswim/a99b09a13e80c262d61915f0f28a51b1 | |
// For instructions on `shopify-api-node` | |
// see: https://github.com/christophergregory/shopify-node-api | |
#!/usr/bin/env node | |
"use strict" | |
const clear = require('clear') | |
const inquirer = require('inquirer') |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
{"status":"OK","personal_settings":{"account":{"login_notes":"","pid":1,"admin_1_manage_org":true,"admin_2_manage_org":false,"admin_1_manage_users":true,"admin_2_manage_users":false,"request_accounts":false,"admin_3_manage_org":false,"admin_3_manage_users":false,"admin_1_zoom_to_data_on_login":true,"admin_2_restrict_to_own_data":false,"default_base_user":"public_1","with_login_sc":true,"from_email":"info@planitgeo.com","admin_2_zoom_to_data_on_login":false,"admin_3_zoom_to_data_on_login":false,"public_1_zoom_to_data_on_login":false,"admin_1_restrict_to_own_data":false,"admin_3_restrict_to_own_data":true,"public_1_restrict_to_own_data":false,"to_email":null,"default_logged_in_user":"admin_2","with_forgot_pword":true,"with_mng_account":true,"users_extra_parameters":null,"with_self_reg_role":false,"overwrite_user_type_self_reg":true,"admin_4_manage_org":false,"admin_4_manage_users":false,"admin_4_zoom_to_data_on_login":false,"admin_4_restrict_to_own_data":true,"admin_5_manage_org":false,"admin_5_manage_users":fa |
/** | |
* @param {object} o - this object will be the Prototype of the newly created object. | |
*/ | |
if (!Object.create) { | |
Object.create = function (o) { | |
if (arguments.length > 1) { | |
throw new Error('Object.create implementation only accepts the first parameter.'); | |
} | |
function F() {} |
ln -s ../../../Cellar/gcc49/4.9.3/share/man/man7/fsf-funding-4.9.7 fsf-funding-4.9.7 | |
ln -s ../../../Cellar/gcc49/4.9.3/share/man/man7/gfdl-4.9.7 gfdl-4.9.7 | |
ln -s ../../../Cellar/gcc49/4.9.3/share/man/man7/gpl-4.9.7 gpl-4.9.7 | |
ln -s ../Cellar/gcc49/4.9.3/lib/gcc gcc | |
==> Summary | |
🍺 /usr/local/Cellar/gcc49/4.9.3: 1,181 files, 196M, built in 38 minutes 19 seconds | |
➜ ~ rvm requirements -v | |
Checking requirements for osx. | |
^C% ➜ ~ rvm requirements --verbose | |
Checking requirements for osx. |
// I did not write this. | |
var url = "https://jsonplaceholder.typicode.com/albums" | |
// Auto unwrap the response as we want the data not the full headers for this simple example | |
const stringifyResponse = response => { | |
if (response.status >= 400) throw new Error(response) | |
return response.headers.get("Content-Type").includes("application/json") ? response.json() : response.text() | |
} |
var mongoose = require('mongoose'), | |
Schema = mongoose.Schema, | |
bcrypt = require('bcrypt'), | |
SALT_WORK_FACTOR = 10; | |
var UserSchema = new Schema({ | |
username: { type: String, required: true, index: { unique: true } }, | |
password: { type: String, required: true } | |
}); |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics