Skip to content

Instantly share code, notes, and snippets.

View cmjio's full-sized avatar

Chris Johnson cmjio

View GitHub Profile
import { useFocusRing } from '@react-aria/focus';
import { Modality } from '@react-aria/interactions';
import { mergeProps } from '@react-aria/utils';
import { Props } from '@ux-aspects-universal/react/utils';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import * as React from 'react';
import { forwardRef, useCallback } from 'react';
import { ChipRemoveButton } from './chip-remove-button';
import { ChipProvider } from './chip.context';
@Directive({
selector: '[testId]'
})
export class TestIdDirective implements OnInit, OnDestroy {
private isTestIdEnabled: boolean = environment.production === false;
constructor(private el: ElementRef) { }
ngOnInit() {
if (this.isTestIdEnabled) {
@cmjio
cmjio / gist:e4df9f7f860cb1b5ed17b12e36626c83
Created August 7, 2019 21:20
delete node_modules recursively in a directory on mac
find . -name "node_modules" -type d -prune | xargs du -chs
Stephanie Smith Solicitors​​ & Associates
30 Bloomsbu​​ry S​​quare, London,
WC1A 2RJ, UK.​​
​​
I am​​ ​t​h​​e personal attorney to Steven Vandersande, a Dutch who was a consultant with Shell UK LTD here in London, w​​ho hereinafter shall be referred to as my late client. Unfortunately My​​ late client lost his life in the MH17 plane crash on the 17th July, 2014 during one of his trip from Netherlands (Amsterdam) to Malaysia (Kuala Lumpur); my late client left no c​​lear beneficiary to the fund ​deposited with a security company as next of kin to the fund except some vital documents​​ related to the deposit with me.
All efforts by me to trace his next of kin and relatives have prove​​d abortive because he did not make any will prior to his death; since then I have made several inquiries/attempt to locate any of my late client's extended relatives and this has proved unsuccessful because he wanted to keep the $15,500,000.00 very private for investment/retirement plan before his untimely death. However, I deci
### Keybase proof
I hereby claim:
* I am cmjio on github.
* I am cmj (https://keybase.io/cmj) on keybase.
* I have a public key ASD06wEiiMm2xRyfGoBpHeXln8S2jQYuT0Vg_p51G8dpWgo
To claim this, I am signing this object:
@cmjio
cmjio / AOC_Day_2_Part_2.js
Last active December 2, 2016 15:01
AOC_Day_2 Part 2: Node.js solution - http://adventofcode.com/2016/day/2
var fs = require('fs');
var input = fs.readFileSync('./input.txt', 'utf8'),
keypad = [
[null, null, 1, null, null],
[null, 2, 3, 4, null],
[5, 6, 7, 8, 9],
[null, 'A', 'B', 'C', null],
[null, null, 'D', null, null],
],
@cmjio
cmjio / AOC_Day_2_Part_1.js
Last active December 2, 2016 15:02
AOC_Day_2: Node.js solution - http://adventofcode.com/2016/day/2
/**
**/
var fs = require('fs');
var input = fs.readFileSync('./input.txt', 'utf8'),
keypad = [
[1,2,3],
[4,5,6],
[7,8,9]
],
@cmjio
cmjio / require.config
Created August 7, 2013 10:46
r.js cdn fallback
requirejs.config({
enforceDefine: true,
paths: {
jquery: [
'//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js',
'js/jquery-2.0.3.min'
]
}
});
set :application, "app name"
set :repository, "https://username:password@repo.git"
set :branch, "master"
set :user, 'ssh user'
set :scm, :git
set :deploy_to, "/home/deploy_dir"
set :deploy_via, :remote_cache
set :use_sudo, false