Skip to content

Instantly share code, notes, and snippets.

View nohuhu's full-sized avatar

Alex Tokarev nohuhu

  • Clari
  • Arcata, CA
View GitHub Profile
@nohuhu
nohuhu / gist:01a7bb42b1c1e1378ea0df6829799055
Created January 30, 2020 01:47
Statium computed table example
import React from 'react';
import ViewModel, { Bind } from 'statium';
const Store = () => (
<ViewModel initialState={{
loading: true,
records: [],
}}
controller={{
initialize: load,
@nohuhu
nohuhu / foo.js
Created January 4, 2019 00:23
React-JSS example
import React from 'react';
import withStyles from 'react-jss';
// A simple object with CSS definition
const styles = {
foo: {
display: 'flex',
marginTop: '10px',
}
};
@nohuhu
nohuhu / ssb-interop.js
Last active May 10, 2019 19:44
Slack dark theme
// Add this code to the bottom of /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener('DOMContentLoaded', () => {
console.log('Loading Dark theme CSS');
const errMsg = (msg) => {
console.error('ERROR LOADING DARK THEME CSS' + (msg ? ': ' + msg : ''));
};
// You can also fork https://github.com/laCour/slack-night-mode and use your own fork url