Skip to content

Instantly share code, notes, and snippets.

Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig
import { Application, HookContext } from '@feathersjs/feathers';
import Redis, {RedisOptions} from 'ioredis';
import crypto from 'crypto';
import Cache from 'ioredis-cache';
import logger from '../../logger';
export const ONE_HOUR = 3600;
export const ONE_DAY = ONE_HOUR * 24;
export const ONE_WEEK = ONE_DAY * 7;
@green3g
green3g / index.html
Last active November 18, 2022 00:40
aurelia-routing
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@green3g
green3g / index.html
Last active March 1, 2022 21:11
object to array
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/default.min.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/halfmoon-variables.min.css" rel="stylesheet" />
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/highlight.min.js"></script>
@green3g
green3g / index.html
Last active July 15, 2021 11:32 — forked from hiaux0/index.html
Shared view model with multiple views
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@green3g
green3g / index.html
Last active March 30, 2021 15:41
Aurelia Basic Progress bar
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@green3g
green3g / index.html
Last active February 23, 2021 22:38
aurelia-billboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@green3g
green3g / index.html
Last active October 2, 2020 01:39 — forked from bigopon/index.html
Aurelia -ux example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dumber Gist</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<base href="/">
</head>
<!--
Dumber gist uses dumber bundler, the default bundle file
@green3g
green3g / toggle.py
Created June 9, 2020 16:24
Stop arcgis services
#-------------------------------------------------------------------------------
# Name: ToggleServices
# Purpose: to demo the rest api of arcgis server
#
# Author: mvanhulzen
#
# Created: 15-10-2018
# Copyright: (c) Esri Nederland BV 2018
#-------------------------------------------------------------------------------
import requests
@green3g
green3g / diff.txt
Created January 7, 2020 14:46
ArcGIS Server Create Site Diff
0a1,3
> A /home/arcgis/ArcGIS
> A /home/arcgis/ArcGIS/AddIns
> A /home/arcgis/ArcGIS/AddIns/Server10.8
210a214,2217
> A /home/arcgis/server/arcpy/arcpy/analysis.pyc
> A /home/arcgis/server/arcpy/arcpy/arcobjects/arcobjectconversion.pyc
> A /home/arcgis/server/arcpy/arcpy/arcobjects/arcobjects.pyc
> A /home/arcgis/server/arcpy/arcpy/arcobjects/_base.pyc
> A /home/arcgis/server/arcpy/arcpy/arcobjects/geometries.pyc