Skip to content

Instantly share code, notes, and snippets.

JGWill jgwill

Block or report user

Report or block jgwill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jgwill
jgwill / dummy.json
Last active Apr 11, 2019
@stcgoal Optimal Management of JSON Files
View dummy.json
{
"name": "transapp",
"version": "0.0.1",
"description": "Master the Translate API to create. string Hello world is adde to each lang located in the i18n directory using the translator",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Guillaume Isabelle",
@jgwill
jgwill / angular-assets-copying-from-node_modules.json
Created Apr 10, 2019
When you want to copy files into assets at compile time in angular Assets
View angular-assets-copying-from-node_modules.json
"assets": [
"src/favicon.ico",
{
"glob": "*.svg",
"input": "./node_modules/country-icons/Markup/blocks/lng/i/",
"output": "assets/i18n.icon/"
},
"src/assets",
"src/assets/i18n"
],
@jgwill
jgwill / firebase-x-create-token.js
Created Apr 1, 2019
Creates a JSON Token from a UID for connecting to Firebase.
View firebase-x-create-token.js
/**
* Creates a JSON Token from a UID for connecting to Firebase.
*/
const config = require('./config');
// The Firebase Admin SDK to access the Firebase Realtime Database.
const admin = require('firebase-admin');
View pi-noblanking-screen.sh
#!/bin/bash
NOBLANK="
@xset s noblank
@xset s off
@xset -dpms
"
# Pretty ANSI text colors
OFF="\033[0m"
View pi-noblanking-screen.sh
#!/bin/bash
NOBLANK="
@xset s noblank
@xset s off
@xset -dpms
"
# Pretty ANSI text colors
OFF="\033[0m"
@jgwill
jgwill / angular.binding.key.ts
Created Mar 23, 2019
Angular 2 Input field Keydown binding references
View angular.binding.key.ts
<input (keydown.enter)="...">
<input (keydown.a)="...">
<input (keydown.esc)="...">
<input (keydown.shift.esc)="...">
<input (keydown.control)="...">
<input (keydown.alt)="...">
<input (keydown.meta)="...">
<input (keydown.9)="...">
<input (keydown.tab)="...">
<input (keydown.backspace)="...">
View firebase-cloud-functions-get-users-get-notes.js
var config = {
apiKey: "uouhtn,htnhutnaohtenuhoetnuhns",
authDomain: "uoeuoeu-eoueou.firebaseapp.com",
databaseURL: "https://oeuoeu-eoueue.firebaseio.com",
projectId: "oeuoeu-oeue",
storageBucket: "oeuoeu-oeuoeu.appspot.com",
messagingSenderId: "2342342343"
};
@jgwill
jgwill / sax-ssh-create-get-key.1903091305.sh
Created Mar 9, 2019
#@A Creating and Getting an SSH public key for GitHub
View sax-ssh-create-get-key.1903091305.sh
ssh-keygen
cat .ssh/id_rsa.pub
View rundisthttpserver.sh
#!/bin/bash
myappnamespace=dummyngapp
# npm install http-server -g
http-server dist/$myappnamespace/ -p 4280 -a 0.0.0.0 -d
You can’t perform that action at this time.