Skip to content

Instantly share code, notes, and snippets.

View Preferences.sublime-settings
{
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"dictionary": "Packages/Language - English/en_GB.dic",
"folder_exclude_patterns":
[
".sass-cache",
"node_modules",
".git"
],
View conf-swap-num-symbols
<item>
<name>Swap symbols for numbers</name>
<appendix></appendix>
<identifier>private.swap_nums</identifier>
<!-- 0 -->
<autogen>__KeyToKey__ KeyCode::KEY_0, ModifierFlag::NONE, KeyCode::KEY_0, ModifierFlag::SHIFT_L</autogen>
<autogen>__KeyToKey__ KeyCode::KEY_0, ModifierFlag::NONE, KeyCode::KEY_0, ModifierFlag::SHIFT_R</autogen>
View gist:8396874
<item>
<name>Hold num key to symbol</name>
<appendix>Input symbol on hold of number key</appendix>
<identifier>private.num_change</identifier>
<autogen>__HoldingKeyToKey__
KeyCode::KEY_1,
KeyCode::KEY_1,
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:

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 () {
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 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 ASDVyzabdgLv_BWiUUyspJq8WVroMlXMPgdbDatBzdAavwo

To claim this, I am signing this object:

View blockstack-verification
Verifying my Blockstack ID is secured with the address 1BEbuhJa19bczuX3HVBMgk6qc5yo2687Wx https://explorer.blockstack.org/address/1BEbuhJa19bczuX3HVBMgk6qc5yo2687Wx
View move-letters.ts
const getNextIndex = (currentIndex: number, array: any[]) =>
currentIndex === array.length - 1 ? 0 : currentIndex + 1;
const getPreviousIndex = (currentIndex: number, array: any[]) =>
currentIndex === 0 ? array.length - 1 : currentIndex - 1;
function moveLetters (input: string) {
const sentence = input.split(' ');
return sentence
.map((currentWord, index) => {
@kyranjamie
kyranjamie / index.html
Created Dec 5, 2019
Popup in browser, new tab when mobile/blocked
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Popup test</title>
</head>
<body>
<button class="js-button">Open popup</button>
</body>
<script>
const btn = document.querySelector('.js-button');