Skip to content

Instantly share code, notes, and snippets.

View martin12333's full-sized avatar

Martin Milan martin12333

View GitHub Profile
@brockmanmatt
brockmanmatt / count01s.ipynb
Created July 20, 2020 03:09
Count01s.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

INT. CORUSCANT-CHANCELLOR’S OFFICE-EARLY EVENING

MACE arrives with THREE JEDI to arrest PALPATINE.

PALPATINE: Master Windu. I take it General Grievous has been destroyed then. I must say, you're here sooner than expected.

MACE WINDU: In the name of the Galactic Senate of the Republic, you are under arrest, Chancellor.

MACE WINDU and the other JEDI ignite their lightsabers.

@mootari
mootari / observable-style.css
Created May 24, 2020 19:49
Monokai for ObservableHQ
/* ==UserStyle==
@name Monokai for Observable
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Overrides the Observable CodeMirror theme with Monokai.
@author -
==/UserStyle== */
@-moz-document domain("observablehq.com") {
/* Based on Sublime Text's Monokai theme */
@skfarhat
skfarhat / VSCode Internal Commands
Created May 19, 2020 21:22
List of VSCode commands
--------------------------------------------
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.5.0
-------------------------------------------
@guest271314
guest271314 / UseItBreakItFileBugsRequestFeaturesTestTestTestTestToThePointItBreaks.txt
Last active July 24, 2024 04:59
Use it. Break it. File Bugs. Request features. Test, test, test. Test to the point it breaks.
So we need people to have weird new
ideas ... we need more ideas to break it
and make it better ...
Use it. Break it. File bugs. Request features.
- Soledad Penadés, Real time front-end alchemy, or: capturing, playing,
altering and encoding video and audio streams, without
servers or plugins!
@meatcar
meatcar / README.md
Last active March 17, 2025 14:44
A better "Reboot to {OS}" script for rEFInd Next Boot selection for Windows
/**
* Export all data from an IndexedDB database
*
* @param {IDBDatabase} idbDatabase The database to export from
* @return {Promise<string>}
*/
export function exportToJson(idbDatabase) {
return new Promise((resolve, reject) => {
const exportObject = {}
if (idbDatabase.objectStoreNames.length === 0) {
@cldwalker
cldwalker / knowledge-graph-experiment.md
Last active March 11, 2024 11:10
knowledge graph experiment

I like to learn, index and retrieve information a lot. I know a lot of others do as well. We share data but I don't think we share our information and rarely our ontologies (a.k.a. our mental models). If we shared our ontologies, I think we could learn more from each other. With this hope in mind, I'm looking for a tool that provides these features:

  • Shares my ontology publicly
  • Shares my bookmarks publicly
  • Provides easy entry, extension and querying of my ontology
  • Provides easy entry and querying of my bookmarks
  • Shares interesting snapshots of my bookmarks
  • Encourages discovery of information that is new and interesting to others

Since I have not found such a tool, I have built a tool that:

"use strict";
import * as BrowserFS from "browserfs";
const IO_LENGTH = 52428800;
const INPUT_TYPE = {
STDIN: "stdin",
WORKERFS: "workerfs",
};
@jakekara
jakekara / hashfile.py
Created September 1, 2018 21:11
get a sha256 digest of a file using python's hashlib
""" Hash a file supplied by argv[1] """
from sys import argv
from hashlib import sha256
# Construct an sha256 algorith
h256 = sha256()
# Get the name of the file we want to hash
fname = argv[1]