Skip to content

Instantly share code, notes, and snippets.

View SalathielGenese's full-sized avatar
🇫🇷
WIP https://github.com/SalathielGenese/resp

Salathiel Genese SalathielGenese

🇫🇷
WIP https://github.com/SalathielGenese/resp
View GitHub Profile
@SalathielGenese
SalathielGenese / JS-multiple-symbols-as-property.js
Last active January 3, 2018 14:07
JS : multiple symbols as property
'APPLICATION' in Symbol || Reflect.set(Symbol, 'APPLICATION', { configurable: false, enumerable: false, value: Symbol(`APPLICATION#${+new Date}`) });
'COMPONENTS' in Symbol || Reflect.set(Symbol, 'COMPONENTS', { configurable: false, enumerable: false, value: Symbol(`COMPONENTS#${+new Date}`) });
'COMPONENT' in Symbol || Reflect.set(Symbol, 'COMPONENT', { configurable: false, enumerable: false, value: Symbol(`COMPONENT#${+new Date}`) });
class A {
get [Symbol.COMPONENTS]() {
return 'ALL';
}
get [Symbol.COMPONENT]() {
return 'ONE';
}
@SalathielGenese
SalathielGenese / gist:807f329cd0668c498f69c37a20d1bb1a
Created January 24, 2018 23:39
./mvnw -Pprod clean package
PS F:\Profiles\Caleb YOMI\#apps\betsport> ./mvnw -Pprod clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Betsport 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ betsport ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (default-resources) @ betsport ---
@SalathielGenese
SalathielGenese / my-index.html
Created February 1, 2018 13:08
index from betsport
<!doctype html>
<html class="no-js" lang="fr" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>betsport</title>
<meta name="description" content="">
<meta name="google" value="notranslate">
<meta name="theme-color" content="#000000">
<meta name="viewport" content="width=device-width, initial-scale=1">
@SalathielGenese
SalathielGenese / output.log
Created May 7, 2018 03:59
npm test output
[nodemon] restarting due to changes...
[nodemon] starting `jasmine JASMINE_CONFIG_PATH=jasmine.json`
Started
.....{ StatusCodeError: 401 - {"status":"Token has expired"}
at new StatusCodeError (/mch-gw/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/mch-gw/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/mch-gw/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/mch-gw/node_modules/request/request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
#!/usr/bin/env bash
help()
{
bel=`tput bel`
bold=`tput bold`
normal=`tput sgr0`
red=`tput setaf 2`
blue=`tput setaf 4`
underline=`tput smul`
{
"compilerOptions": {
"target": "es2015",
"module": "es2015",
}
}
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
}
}
export const data = {
message: 'Hello world',
};
import { data } from './data';
alert( data.message );
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TypeScript for the web</title>
</head>
<body>
<script src="./index.js"></script>