Skip to content

Instantly share code, notes, and snippets.

View jacob414's full-sized avatar
💭
Retired but semi-active, hobby projects & activism

Jacob Oscarson jacob414

💭
Retired but semi-active, hobby projects & activism
View GitHub Profile
@jacob414
jacob414 / trans.py
Last active June 18, 2020 10:12
Quick and dirty .srt file translation using cheeseshop packages translate, funcy
import sys
import srt
from translate import Translator
import funcy as fy
codec = 'ISO-8859-1'
tr = Translator('sv', email='[email protected]')
inf = sys.argv[-1]
@jacob414
jacob414 / importer.py
Created May 17, 2020 20:54
Tracebacks?
import kind
@jacob414
jacob414 / growth.py
Created December 3, 2019 15:05
Simplest possible(?), but still readable program that shows how a small percentage increase always leads to doubling.
"""An extremely simple program that shows how a comparately small
percentage of growth turns into a consecutive doubling of the starting
value.
The strength of the relation between energy and
"""
import time
year = 1
Hello Glooko!
Working at Glooko has been a real inspiration for me. I’m excited about what’s been accomplished by the team and where we are heading in the future.
As the new Director of Marketing, I’ve had the pleasure of working within the marketing team and cross-departmentally to launch strategic initiatives that further align our mission and vision. As we head into ADA, I’m excited to share with you just a few of the bright points of our efforts to relaunch Glooko as the thought leader in the diabetes data management space.
class _lm(object):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return self.msg()
assert 1 == 1, _lm(lambda: 'lazy 1')
assert 1 == 2, _lm(lambda: 'lazy 2')
@jacob414
jacob414 / define-inject-tap-once.js
Created August 10, 2016 14:29
Define inject-tap once
import injectTapEventPlugin from ‘react-tap-event-plugin’;
const tapInitOnce = once(() => injectTapEventPlugin());
@jacob414
jacob414 / install-material-ui.sh
Created August 10, 2016 14:27
Install Material UI
npm i react-tap-event-plugin — save
npm i material-ui — save
@jacob414
jacob414 / mui-themed-rudiment.jsx
Created August 10, 2016 14:23
MUI themed rudiment
<MuiThemeProvider muiTheme={getMuiTheme(myTheme)}>
<div>
<AppBar title="Quick proof-of-concept"/>
<List>
<ListItem primaryText="Item 1" />
<ListItem primaryText="Item 2" />
</List>
<img src={logo} className="App-logo" alt="logo"/>
</div>
</MuiThemeProvider>
@jacob414
jacob414 / imort-mui-theming.jsx
Created August 10, 2016 14:21
Import Material theme support
import myTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
<div>
<AppBar title=”Quick proof-of-concept”/>
<List>
<ListItem primaryText=”Item 1" />
<ListItem primaryText=”Item 2" />
</List>
<img src={logo} className=”App-logo” alt=”logo”/>
</div>