Skip to content

Instantly share code, notes, and snippets.

View psimyn's full-sized avatar
🏠
Working from home

Simon Knox psimyn

🏠
Working from home
View GitHub Profile
@psimyn
psimyn / quote.txt
Created January 14, 2021 10:21 — forked from OnesimusUnbound/quote.txt
Programming Quotes
[T]he difference between a bad programmer and a
good one is whether he considers his code or his
data structures more important. Bad programmers
worry about the code. Good programmers worry about
data structures and their relationships.
-- Linus Torvalds
~~~
Clarity and brevity sometimes are at odds.
When they are, I choose clarity.
-- Jacob Kaplan-Moss
diff --git a/bot/cogs/pavlov.py b/bot/cogs/pavlov.py
index e535051..be542fb 100644
--- a/bot/cogs/pavlov.py
+++ b/bot/cogs/pavlov.py
@@ -9,7 +9,7 @@ import aiohttp
import discord
from discord.ext import commands
-from bot.utils import Paginator, aliases, servers
+from bot.utils import Paginator, aliases, servers, config
@psimyn
psimyn / .gitattributes
Last active June 15, 2019 23:55
Automatically resolve yarn.lock conflicts in git. .gitconfig needs tab indents, and goes in home directory. gitattributes goes in your repo
yarn.lock schema=yarn
const ffffff = 16777215 // hex -> decimal
const decimal = Math.floor(Math.random() * ffffff)
const hex = '#' + decimal.toString(16)
Verifying my Blockstack ID is secured with the address 14ZqTZFQYuBWEWs51BiarZ6oeCCjfFBwKp https://explorer.blockstack.org/address/14ZqTZFQYuBWEWs51BiarZ6oeCCjfFBwKp
someAsync()
.then(
(success) => {
console.log('success1')
},
(error) => {
console.log('failed1')
})
.catch(error => {
@psimyn
psimyn / _theme.scss
Last active April 11, 2016 23:25
Component Theme Mxiin
/*
* You define global sass variable called "$theme"
* currently specified in sassLoader option in webpack.config
*
*/
@mixin themify($property, $default, $light-theme) {
@if $theme == 'light' {
:root {
--#{$property}: $light-theme;