Skip to content

Instantly share code, notes, and snippets.

Jarret Moses jarretmoses

Block or report user

Report or block jarretmoses

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
@jarretmoses
jarretmoses / logs.js
Created Jan 6, 2020
TS/JS Server logs Vscode
View logs.js
[2020-01-06 10:24:07.349] [exthost] [info] extension host started
[2020-01-06 10:24:07.365] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features {"startup":false,"extensionId":{"value":"vscode.typescript-language-features","_lower":"vscode.typescript-language-features"},"activationEvent":"onLanguage:typescriptreact"}
[2020-01-06 10:24:07.366] [exthost] [info] ExtensionService#loadCommonJSModule file:///Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension
[2020-01-06 10:24:07.390] [exthost] [info] ExtensionService#_doActivateExtension ecmel.vscode-html-css {"startup":false,"extensionId":{"value":"ecmel.vscode-html-css","_lower":"ecmel.vscode-html-css"},"activationEvent":"onLanguage:typescriptreact"}
[2020-01-06 10:24:07.390] [exthost] [info] ExtensionService#loadCommonJSModule file:///Users/jarretmoses/.vscode/extensions/ecmel.vscode-html-css-0.2.3/dist/extension
[2020-01-06 10:24:07.452] [exthost] [info] Extensi
@jarretmoses
jarretmoses / 3.8.x_run_a_test.js
Created Dec 27, 2019
Output from clicking and running a test through dev giu on 3.8.x
View 3.8.x_run_a_test.js
cypress: server: events got request for event: close: browser, undefined + 9 s
cypress: server: events sending ipc data {
type: 'close:browser',
data: {
id: 0.41759796470795063,
data: undefined
}
} + 0 ms
cypress: server: events got request for event: launch: browser, {
browser: {
@jarretmoses
jarretmoses / 3.7.0_run_a_test.js
Last active Dec 27, 2019
Running a test through the dev gui
View 3.7.0_run_a_test.js
Cypress / cy / production / projects / web - b86ba6be701b62eddebf7f0baf8415dc / state.json + 1 ms
cypress: server: file gettin lock succeeded or failed
for / Users / jarretmoses / Library / Application Support / Cypress / cy / production / projects / web -
b86ba6be701b62eddebf7f0baf8415dc / state.json + 0 ms
cypress: server: file read / Users / jarretmoses / Library / Application Support / Cypress / cy / production /
projects / web - b86ba6be701b62eddebf7f0baf8415dc / state.json + 0 ms
cypress: server: file read succeeded or failed
for / Users / jarretmoses / Library / Application Support / Cypress / cy / production / projects / web -
b86ba6be701b62eddebf7f0baf8415dc / state.json + 1 ms
cypress: server: file attempt to unlock / Users / jarretmoses / Library / Application Support / Cypress / cy /
@jarretmoses
jarretmoses / 3.8.x-cy-open.js
Last active Dec 27, 2019
Some output of running cypress open on v 3.8.x
View 3.8.x-cy-open.js
cypress: cli: cli cli starts with arguments["/usr/local/bin/node",
"/Users/jarretmoses/Dev/web/node_modules/.bin/cypress", "open"] + 0 ms
cypress: cli NODE_OPTIONS is not set + 0 ms
cypress: cli: cli program parsing arguments + 2 ms
cypress: cli: cli opening Cypress + 1 ms
cypress: cli parsed cli options {} + 47 ms
cypress: cli opening from options {
"project": "/Users/jarretmoses/Dev/web"
} + 0 ms
cypress: cli command line arguments["--project", "/Users/jarretmoses/Dev/web"] + 0 ms
@jarretmoses
jarretmoses / 3.7.0-cy-open.js
Last active Dec 27, 2019
Some output of debug from cypress open command on 3.7.0
View 3.7.0-cy-open.js
cypress: cli cli starts with arguments["/usr/local/bin/node", "/Users/jarretmoses/Dev/web/node_modules/.bin/cypress",
"open"] + 0 ms
cypress: cli NODE_OPTIONS is not set + 0 ms
cypress: cli program parsing arguments + 2 ms
cypress: cli opening Cypress + 1 ms
cypress: cli parsed cli options {} + 46 ms
cypress: cli opening from options {
"project": "/Users/jarretmoses/Dev/web"
} + 0 ms
cypress: cli command line arguments["--project", "/Users/jarretmoses/Dev/web"] + 0 ms
@jarretmoses
jarretmoses / debounce.js
Created Oct 29, 2019
Debounce from Scratch
View debounce.js
const debounce = (callback, wait) => {
let timeout = null;
return (...args) => {
clearTimeout(timeout);
timeout = setTimeout(() => {
callback.apply(this, args);
}, wait);
};
View cypress-debug.log
cypress:cli cli starts with arguments ["/usr/local/bin/node","/Users/jarretmoses/Dev/web/node_modules/.bin/cypress","open"] +0ms
cypress:cli NODE_OPTIONS is not set +0ms
cypress:cli program parsing arguments +2ms
cypress:cli opening Cypress +1ms
cypress:cli parsed cli options {} +35ms
cypress:cli opening from options {"project":"/Users/jarretmoses/Dev/web"} +0ms
cypress:cli command line arguments ["--project","/Users/jarretmoses/Dev/web"] +0ms
cypress:cli verifying Cypress app +0ms
cypress:cli checking environment variables +1ms
@jarretmoses
jarretmoses / auth-token-header-set.js
Last active Mar 26, 2018
Setting a Global Auth Header to a Auth Token With React + Axios
View auth-token-header-set.js
// api.js
// @flow
import axios from 'axios';
import { BASE_URL } from '../constants/api';
type BaseFetch = {
url: string,
}
@jarretmoses
jarretmoses / xcode-print-font-names.m
Created Jul 14, 2017
Script to place inside AppDelegate.m to print out actual font names in your iOS (and React Native) project
View xcode-print-font-names.m
for (NSString *familyName in [UIFont familyNames]){
NSLog(@"Family name: %@", familyName);
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) {
NSLog(@"--Font name: %@", fontName);
}
}
View gist:9ee456b63564bc660d3ee74e946b5267
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.5/bin/
export ANDROID_HOME=~/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
ZSH=$HOME/.oh-my-zsh
# PROMPT
BULLETTRAIN_TIME_SHOW=false
You can’t perform that action at this time.