Suggestions for both integrations with existing projects and totally new projects.
This file contains hidden or 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
10.45 |
This file contains hidden or 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 fs from 'fs'; | |
import { js_beautify as beautify } from 'js-beautify'; | |
import Sequelize from 'sequelize'; | |
import * as models from "../models"; | |
const sequelize = new Sequelize({ | |
host: '', | |
port: '', |
This file contains hidden or 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
{ | |
"methods": [ | |
{ | |
"exceptions": [], | |
"returns": [], | |
"params": [ | |
{ | |
"nullable": null, | |
"optional": null, | |
"name": "client", |
This file contains hidden or 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
node_modules |
This file contains hidden or 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
#!/bin/bash | |
# Configuration for the script | |
POSTFIX_CONFIG=/etc/postfix/main.cf | |
POSTFIX_SASL=/etc/postfix/sasl_passwd | |
function confirm () { | |
read -r -p "${1:-Are you sure? [Y/n]} " response | |
if [[ $response == "" || $response == "y" || $response == "Y" ]]; then | |
echo 0; |
This file contains hidden or 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 express = require('express'); | |
var app = express(); | |
var gcloud = require('gcloud')({ /* extra config here */ }); | |
var dataset = gcloud.datastore.dataset({ /* projectId: my-project */ }); | |
// Set the trace ID on a per-request basis via middleware | |
// (See http://expressjs.com/guide/writing-middleware.html) | |
app.use(function(req, res, next) { | |
// Need to double check that this works from a thread safety perspective. |
This file contains hidden or 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
[ | |
{ | |
"type": "class", | |
"name": "gcloud.storage.client.Client" | |
}, | |
{ | |
"return": { | |
"type_name": "class:`gcloud.storage.bucket.Bucket`", | |
"description": "The newly created bucket." | |
}, |
This file contains hidden or 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
[ | |
{ | |
"type": "class", | |
"name": "gcloud.storage.client.Client" | |
}, | |
{ | |
"type": "function", | |
"return": { | |
"type_name": "class:`gcloud.storage.bucket.Bucket`", | |
"description": "The newly created bucket." |
This file contains hidden or 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 argparse | |
import json | |
from parinx.parser import parse_docstring | |
import pdoc | |
def main(): | |
parser = argparse.ArgumentParser(description='Document Python modules.') | |
parser.add_argument('module', nargs='*', |
NewerOlder