Skip to content

Instantly share code, notes, and snippets.

View sowhatdoido's full-sized avatar
💭
On mission at TeamOne

Frank Tran sowhatdoido

💭
On mission at TeamOne
View GitHub Profile
let [watch, stop, list] = (() => {
let cap = [];
Notification.requestPermission();
let dom = document.querySelector('.ReactVirtualized__Grid__innerScrollContainer');
let stonks = Array.from(document.querySelectorAll('[data-testid=PositionCell]'))
let observer = new MutationObserver((m, o) => {
stonks.forEach(s => {
let stonk = s.querySelector('a > div:first-child > div:first-child').innerText.toLowerCase();
let price = parseFloat((s.querySelector('a > div:last-child > span > div > span:first-child').innerText || '').replace('$', ''));
@sowhatdoido
sowhatdoido / Pigpio
Last active September 3, 2019 19:51
const cols = [15, 18, 23, 24, 25, 8, 12, 16, 20, 21];
const rows = [4, 17, 27, 22, 5, 6, 13, 19, 26];
rows.forEach(function(val, key){
const rec = new Gpio(val, {
mode: Gpio.INPUT,
pullUpDown: Gpio.PUD_DOWN,
alert: true
});
rec.on('alert', (level, tick) => {
@sowhatdoido
sowhatdoido / index.ducks.js
Last active July 31, 2019 21:27
Nav Ducks
import axios from 'axios';
import reduceReducers from 'reduce-reducers';
import { createAction, handleAction } from 'redux-actions';
export const initialState = {
visible: true,
searchTerm: '',
shortcuts: [],
suggestions: [],
};
.GridContainer{position:relative;max-width:1200px}.GridContainerFluid{composes:GridContainer;max-width:100%}.row{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px;margin-bottom:20px}.xs_1,.xs_10,.xs_11,.xs_12,.xs_2,.xs_3,.xs_4,.xs_5,.xs_7,.xs_8,.xs_9{width:100%;display:block;box-sizing:border-box;padding-left:10px;padding-right:10px}.row:last-child{margin-bottom:0}.xs_1{max-width:8.3333333333%}.xs_2{max-width:16.6666666667%}.xs_3{max-width:25%}.xs_4{max-width:33.3333333333%}.xs_5{max-width:41.6666666667%}.xs_6{width:100%;max-width:50%;display:block;box-sizing:border-box;padding-left:10px;padding-right:10px}.xs_7{max-width:58.3333333333%}.xs_8{max-width:66.6666666667%}.xs_9{max-width:75%}.xs_10{max-width:83.3333333333%}.xs_11{max-width:91.6666666667%}.xs_12{max-width:100%}.xs_offset0{margin-left:0}.xs_offset1{margin-left:8.3333333333%}.xs_offset2{margin-left:16.6666666667%}.xs_offset3{margin-left:25%}.xs_offset4{margin-left:33.3333333333%}.xs_offset5{margin-left:41.6666666667%}.xs_offset6{margin
// eslint-disable-next-line no-unused-vars
import { CommonFieldTypes, SitecoreIcon, Manifest } from '@sitecore-jss/sitecore-jss-manifest';
import packageJson from '../../../package.json';
export default function(manifest) {
manifest.addComponent({
name: 'Hero',
icon: SitecoreIcon.DocumentTag,
fields: [
{ name: 'image', type: CommonFieldTypes.Image },
@sowhatdoido
sowhatdoido / App.css
Created February 27, 2018 07:18
JinsterProject
.App {
position: fixed;
bottom: 0;
right: 10%;
text-align: center;
width: 200px;
}
.cta {
background: lightgray;