I hereby claim:
- I am imjared on github.
- I am imjared (https://keybase.io/imjared) on keybase.
- I have a public key ASAyEZudDaehMsNgynlDs_jxZ6-KcVZF_EubkUKqG4IVCQo
To claim this, I am signing this object:
/** | |
* Note that this only works for pages that have a table of contents. It won't magically make one for you. V2, anyone? | |
* | |
* Usage: | |
* 1. In Chrome, right click your bookmarks menu and click "Add page" in the popup menu | |
* 2. For "Name", pick something like "Notion TOC Formatter" | |
* 3. For "URL", paste the code below and click Save | |
* 4. On a Notion page that has a table of contents, click the bookmarklet and ✨✨ | |
* | |
* This will only work for the page you're on. As soon as you navigate, ya gotta click again. |
## Add to U | |
! add notion | |
notion.so##.notion-table_of_contents-block>div:style(overflow: scroll; overflow-x: hidden; background-color: white; position: fixed !important; top: 4rem; left: 1rem; width: 350px !important; padding: 2rem; border: 1px solid #eee; border-radius: 5px; max-height: calc(100vh - 5rem) !important; overflow: scroll;) |
! In ublock's extension settings, under "My Filters", add the following: | |
! move notion's table of contents to the side | |
notion.so##.notion-table_of_contents-block>div:style( position: fixed !important; top: 4rem; left: 1rem; width: 350px !important; padding: 2rem; border: 1px solid #eee; border-radius: 5px; max-height: calc(100vh - 5rem) !important; overflow: scroll;) |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
projectFile=$(find $1 -name "*.sublime-project" -maxdepth 1) | |
echo $projectFile | |
if [ $projectFile ] | |
then | |
subl $projectFile | |
else | |
subl $1 | |
fi |
var total = 0; | |
$('.results-list tr').not('thead tr').each( function() { | |
var amount = $(this).find('td').eq(4).text(); | |
amount = amount.replace('$', ''); | |
total = total + parseFloat( amount ); | |
}); | |
console.log( 'total amount: $' + total.toFixed( 2 ) + ', lol' ); |
// breakpoint helpers based on bootstrap's breakpoints | |
@mixin xs { | |
@media #{screen} and (max-width: #{$screen-xs-max}) { | |
@content; | |
} | |
} | |
@mixin sm { | |
@media #{screen} and (min-width: #{$screen-sm-min}) and (max-width: #{$screen-sm-max}) { |
@import "mathsass/dist/math.scss"; | |
$radius: 12px; | |
$colors : ( | |
1: #746f86, | |
2: #746f86, | |
3: #a16e8f, | |
4: #a16e8f, | |
5: #a9637b, | |
6: #a9637b, |
#!/bin/bash | |
projectFile=$(find $1 -name "*.sublime-project" -maxdepth 1) | |
echo $projectFile | |
if [ $projectFile ] | |
then | |
subl $projectFile | |
else | |
subl $1 | |
fi |
#!/bin/bash | |
# takes an argument of an undesired prefix then removes it from all files in dir | |
# if no arg is passed, prompt for name | |
if [ $# -eq 0 ] | |
then | |
read -p 'What prefix do you want to remove?: ' | |
prefix=$REPLY | |
else | |
prefix=$1 |