Skip to content

Instantly share code, notes, and snippets.

View gist:c365c2908c5a26eaec4930fec3140504
const $RefParser = require('json-schema-ref-parser');
const fs = require('fs-extra');
const chokidar = require('chokidar');
const glob = require('glob');
const _ = require('lodash');
const path = require('path');
const args = require('yargs').argv;
const chalk = require('chalk');
const schemas = 'src/**/*.schema.json';
View functions.js
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Account = /** @class */ (function () {
function Account() {
}
Account.prototype.entityType = function () {
return this.companyType;
};
Account.prototype.completeAddress = function () {
@kyranjamie
kyranjamie / countries.enum.ts
Last active Jan 15, 2022
TypeScript enum Country Codes ISO 3166
View countries.enum.ts
export enum Country {
Afghanistan = 'AF',
AlandIslands = 'AX',
Albania = 'AL',
Algeria = 'DZ',
AmericanSamoa = 'AS',
Andorra = 'AD',
Angola = 'AO',
Anguilla = 'AI',
Antarctica = 'AQ',
View keybase.md

Keybase proof

I hereby claim:

  • I am kyranjamie on github.
  • I am kyranjamie (https://keybase.io/kyranjamie) on keybase.
  • I have a public key ASD8jeThJKMR8Qd2EL2d96nJ22sZ0OfVhW03gkXyFeTj3wo

To claim this, I am signing this object:

@kyranjamie
kyranjamie / keycodes.ts
Created Aug 3, 2016
TypeScript Browser Key Codes Enum
View keycodes.ts
enum keyCodes {
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
SHIFT: 16,
CTRL: 17,
ALT: 18,
PAUSE: 19,
CAPS_LOCK: 20,
ESCAPE: 27,
View gist:0c6735d3b66cc74c2f06
# Git
alias g="git"
alias commits="git shortlog -sn"
alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
alias gs="git status"
alias ga="git add"
alias gc="git commit -m"
alias gp="git push"
alias gpl="git pull"
alias gd="git diff"
View gist:196c015d2f228f423b4d
gulp.task('scripts:dev', ['templates'], function() {
return gulp.src(paths.scripts)
.pipe(plumber())
.pipe(concat('app.js'))
.pipe(ngmin())
.on('error', notify.onError())
.pipe(gulp.dest('public/dist/js'))
.pipe(refresh(lrserver));
});
View gist:b0ac3dd518580b131d50
- request:
url: /hello
response:
body: ':)'
- request:
url: /give/me/a/smile
response:
status: 200
body: >
{"status": "hello world with single quote"}
View gist:1c48427caa121ca8a947
<?xml version="1.0"?>
<root>
<!--
# Declare hardware devices
-->
<devicevendordef>
<vendorname>daskeyboard</vendorname>
<vendorid>0x04d9</vendorid>
</devicevendordef>
View gist:9780376
<?xml version="1.0"?>
<root>
<!--
# Declare hardware devices
-->
<devicevendordef>
<vendorname>daskeyboard</vendorname>
<vendorid>0x04d9</vendorid>
</devicevendordef>