Skip to content

Instantly share code, notes, and snippets.

Turn off the Devo Course in I-Know

1. Start!

Make sure you are signed into Canvas then go to this url in Chrome:

chrome-extension://oobphcndhljfbmllppplinbdagpnfbjp/index.html

2. Then open up the developer console

@Synvox
Synvox / iknowfix.md
Last active April 21, 2020 23:47
Fix I-Know's mega course problem

I-Know's out of space issue for some BYU-Idaho courses

This is a hacky script to fix an issue several students at BYU-Idaho are having with I-Know. I-Know has a space limit of 5mb and there are a couple courses at BYU-Idaho that are exceeding that limit. There is a fix released to the Chrome Webstore but it may take weeks for it to be released to every student.

The issue is caused by the extension running out of space before saving course information. There is a way to disable courses in the settings of I-Know but because I-Know runs out of space before saving that list, students are not able to fix the issue themselves.

@Synvox
Synvox / sql.sql
Created August 26, 2019 04:37
Postgres - get all schemas, tables, columns, and references
with refs as (
select kcu.table_schema as table_schema,
kcu.table_name as table_name,
kcu.column_name as column_name,
rel_kcu.table_schema as references_schema,
rel_kcu.table_name as references_table
from information_schema.table_constraints tco
join information_schema.key_column_usage kcu
on tco.constraint_schema = kcu.constraint_schema
and tco.constraint_name = kcu.constraint_name
const path = require('path')
process.env.NODE_ENV = 'development'
module.exports = {
entry: {
app: ['./src/index.js']
},
output: {
path: path.resolve(__dirname, 'dist'),
import wixData from 'wix-data';
/*
steps:
1. Get the order you need
2. Get a list of images that can be clicked
3. for each image, add a click event
4. In each click event, update the order
from step 1 to be the id from the image
// PROMISES!
// There are two ways to work with promises.
// Option 1 the easiest once you understand it.
// JavaScript has a feature called Async-Await
// Notice the *async* keyword before function
async function asyncPattern() {
// In async functions, you can get the result of
// promises without .then. Just stick a 'await'
// in front of it and it will wait for the promise
import wixData from 'wix-data';
$w.onReady(async ()=>{
const item = await wixData.get('collectionName', 'itemId')
$w('#myInputSelector').value = item.propertyName
})
var nodemailer = require('nodemailer')
var transporter = nodemailer.createTransport("SMTP", {
host: "smtp.domain.com",
secureConnection: false,
port: 587,
auth: {
user: "email@domain.com",
pass: 'password'
},
@Synvox
Synvox / example.js
Created October 3, 2017 16:49
ticks
var json = `{ "familyMemebers" : [
{ "firstName":"Nancy" , "lastName":"Palmer" },
{ "firstName":"Addison" , "lastName":"Palmer" },
{ "firstName":"Davin" , "lastName":"Palmer" },
{ "firstName":"Janey" , "lastName":"Palmer" }
]}`
@Synvox
Synvox / spectre.css
Created June 14, 2017 21:23
Spectre v2
/*! Spectre.css | MIT License | github.com/picturepan2/spectre */html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}hr{box-sizing:content-box;height:0;overflow:visible}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:n