- https://www.khanacademy.org/computer-programming/untangle/6663896364089344
- https://www.khanacademy.org/computer-programming/rop/6109747499892736
- https://www.khanacademy.org/computer-programming/sketch-n-collect/5974925271695360
- https://www.khanacademy.org/computer-programming/drag-the-snakes/5253417503686656
- https://www.khanacademy.org/computer-programming/pipes/6289595535327232
- https://www.khanacademy.org/computer-programming/mr-blues-first-great-adventure/5517983221
- https://www.khanacademy.org/computer-programming/1010/5923047848148992
- https://www.khanacademy.org/computer-programming/paddle-flipper/6223688231419904
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Show flags on programs | |
// @version 1.1 | |
// @description Shows number of flags for a program, even on the hot list (khanacademy.org/cs/i/6347724702416896) | |
// @author Eytukan (ported by Matthias) | |
// @match https://www.khanacademy.org/computing/computer-programming/browse | |
// @match https://www.khanacademy.org/profile/*/projects | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
//The element that we mess with | |
var base = document.getElementsByClassName("voting-wrap")[0]; | |
//No voting base means we're looking at a child account program or a tutorial/offical video | |
if (!base) { | |
//Try just adding a whole new thing | |
var wrap = document.getElementsByClassName("buttons_vponqv"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- Taken from https://khanacademy.org/cs/i/5157014494511104, from pamela, from DillingerLee --> | |
<html> | |
<head> | |
<title>Processing.JS inside Webpages: Template</title> | |
</head> | |
<body> | |
<p align="center"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"username": "Butterflys4me", "kaid": "kaid_288875354292615286993893", "nickname": "Sasha B", "points": 5171599}, | |
{"username": "JuzerShakir", "points": 5278769, "nickname": "Juzer Shakir", "kaid": "kaid_1019087183123970941813090"}, | |
{"username": "furia.dhaval", "kaid": "kaid_1143531252016047271846752", "nickname": "Dhaval Furia", "points": 7861227}, | |
{"username": "CaptainAmericaCivilWar2016", "kaid": "kaid_124058193188360295524990", "nickname": "David (TD)", "points": 0}, | |
{"username": "kdgettelman", "points": 7063005, "nickname": "Lachesis", "kaid": "kaid_238644219424894610277990"}, | |
{"username": "Thornclaw", "kaid": "kaid_449226918406096781851737", "nickname": "Roman Farchutdinov", "points": 6071563}, | |
{"username": "versesvineyard", "kaid": "kaid_519084642615019393614658", "nickname": "jjv007", "points": 5924578}, | |
{"username": "HeYamin", "points": 9742971, "nickname": "Benjamin", "kaid": "kaid_642616638457067013727525"}, | |
{"username": "yagod", "points": 7122516, "nickname": "Yago", "kaid": "kaid_346165209013713 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
/* ---- Definitions and fetching information ---- */ | |
const EXTENSION_ITEM_CLASSNAME = "m-better-voting"; | |
let oldWrap = document.querySelector(".voting-wrap .discussion-meta-controls").firstChild; | |
//No voting wrap means we're looking at a child account program or a tutorial/offical video or program, contest, etc | |
if (!oldWrap || !oldWrap.innerText.includes("Vote")) { | |
return; |
I hereby claim:
- I am MatthiasSaihttam on github.
- I am matthias1 (https://keybase.io/matthias1) on keybase.
- I have a public key whose fingerprint is 7C97 9494 7C55 C478 FEFF 932C 154B 71C3 B6C7 7172
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getAbnormalProps () { | |
var f = document.createElement("iframe"); | |
f.src = "about:blank"; | |
document.body.appendChild(f); | |
var normalProps = Object.keys(f.contentWindow); | |
var result = {}; | |
Object.keys(window).filter(p => !normalProps.includes(p)).forEach(p => { result[p] = window[p]; }); | |
- To add, for example, TypeScript,
- Find a
.sublime-syntax
file for the language. - Create a TypeScript folder in
xi-mac/xi-editor/rust/syntect-plugin/syntect-resources/Packages/
- Place the .sublime-syntax file in that folder.
/xi-mac/xi-editor/rust/syntect-plugin/syntect-resources/Packages/TypeScript/TypeScript.sublime-syntax
- In
xi-mac/xi-editor/rust/syntect-plugin/
, run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from "express"; | |
import Turn from "node-turn"; | |
//App serves user controlled HTML inside of a content security policy | |
//The app can run JS but shouldn't be able to "phone-home" to a remote server | |
//This is untrusted | |
const CODE = `<!DOCTYPE html> | |
<html> | |
<body> |
OlderNewer