Skip to content

Instantly share code, notes, and snippets.

@conglin
conglin / my.js
Last active March 5, 2021 07:16 — forked from 1242035/nuxt.config.js
require("dotenv").config();
module.exports = {
mode: "universal",
/*
** Headers of the page
*/
head: {
titleTemplate: "",
title: "MYbOnline | Customer Portal",
@conglin
conglin / delete_site.py
Last active February 11, 2020 14:08 — forked from crizCraig/gist:2816250
Deleting all entities in a namespace on Google App Engine with Python.
DEV = os.environ['SERVER_SOFTWARE'].startswith('Dev')
APP_ID = os.environ['APPLICATION_ID']
TESTSPACE = 'test.site3.bonlineapp.com' #change this to the namespace to delete
def deleteDBandMemcache():
"""Delete all entities in a namespace."""
from google.appengine.api import namespace_manager
######################################
namespace_manager.set_namespace(TESTSPACE)
######################################
@conglin
conglin / my-first-module.md
Created November 22, 2018 10:00 — forked from tmpvar/my-first-module.md
how to create your very first node.js module and publish it to the npm registry

building your first node module

This is pretty simple, lets dive in!

choose a name

Find a name that isn't taken and clearly describes what your module is doing

$ npm view your-first-node-module
"""
I've been thinking lately about how perfect Redis would be for storing a
simple social graph. I posited that it would be relatively few lines of code,
and that it'd be clean code too. So here it is: a basic social graph built on Redis.
"""
class FriendGraph(object):
def __init__(self, ring):
self.ring = ring