Skip to content

Instantly share code, notes, and snippets.

@MilesCranmer
MilesCranmer / userChrome.css
Created December 5, 2022 21:32
Sidebery customization with proper hiding
#main-window[titlepreface*="[Sidebery]"] #TabsToolbar {
visibility: collapse !important;
}
#sidebar-header {
display: none;
}
#main-window #TabsToolbar {
overflow: hidden;
transition: height .3s .3s !important;
# 2 population spiking model
# two coupled population with convolution inh <-> exc
# structures, stepper, plotting
###
using Setfield
using Parameters
using Random
using SparseArrays
using LinearAlgebra
using NNlib #gives a bunch of activation function also used by flux.jl
// ==UserScript==
// @name Roam YouTube timestamp controls
// @namespace learnstream.org
// @version 0.1
// @description Add timestamp controls to YouTube videos embedded in Roam
// @author Ryan Muller <[email protected]>
// @match https://*.roamresearch.com
// @grant none
// ==/UserScript==
// Copyright 2020 Google LLC.
@thesved
thesved / roam-auto-enclose.js
Last active October 12, 2020 17:33
Roam Research Auto Enclose for quotes et al
/*
* Viktor's Roam Native Autoenclose PoC
* version: 0.3
* author: @ViktorTabori
*
* How to install it:
* - go to page [[roam/js]]
* - create a node with: {{[[roam/js]]}}
* - create a clode block under it, and change its type from clojure to javascript
* - allow the running of the javascript on the {{[[roam/js]]}} node
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devonzuegel
devonzuegel / clean-google-docs.css
Last active February 16, 2021 22:58
Custom styles for Stylus Chrome extension
/* This has moved to:
* https://github.com/devonzuegel/digital-nesting/blob/master/google-docs.css
*/
@mwouts
mwouts / Debug Jupyter notebooks in Pycharm.md
Last active December 9, 2022 16:47
2018-06 Debug Jupyter notebooks with PyCharm

Did you ever had to debug some large cell in a Jupyter notebook? In the below I share my experience on the subject. We'll review the classical methods for debugging notebooks, and finally I'll show how to set breakpoints in PyCharm for code being execute in a jupyter notebook, and benefit of the comfort of a real Python IDE for debugging.

Debug in the notebook

Before I actually describe what Pycharm can do, we quickly review the jupyter commands for debugging.

Catch exceptions

@noelbundick
noelbundick / LICENSE
Last active November 6, 2024 11:46
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@gansanay
gansanay / hdf_vs_feather.ipynb
Last active June 26, 2023 12:25
Compare HDF5 and Feather performance (speed, file size) for storing / reading pandas dataframes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 16, 2024 22:55
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux