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
// search returns array of matching docs ranked by tf-idf score | |
// aka term frequency * inverse document frequency | |
// | |
// tf = # of occurences of term in document / # of words in document | |
// idf = log ( # of documents / # of documents with term ) | |
// tf-idf = tf * idf | |
// multi-term tf-idf = sum of tf-idf scores (per document) | |
type Doc = string |
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 create, { GetFunction, SetFunction } from 'zustand' | |
export type MyStore = { | |
flag?: boolean | |
actions: MyActions | |
} | |
class MyActions { |
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
- Check meta | |
http://www.heymeta.com/url/cryptagon.io | |
Add analytics |
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
export const extra = [ | |
{ | |
title: 'Home Assessment', | |
description: `First you will fill out an assessment that illuminates what life in the 21st century is for you, your family and home to make sure you understand what is causing the overwhelm and stress in your home life`, | |
formats: [ | |
`Worksheet`, | |
`1 hour of my help at your home`, | |
`1 hour of my help at your home`, | |
], | |
}, |
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
Verifying my Blockstack ID is secured with the address 1EtceTigT7sGEk2ZWxgcF1eU8KRcMTJW1c https://explorer.blockstack.org/address/1EtceTigT7sGEk2ZWxgcF1eU8KRcMTJW1c |
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
Verifying my Blockstack ID is secured with the address 1EtceTigT7sGEk2ZWxgcF1eU8KRcMTJW1c https://explorer.blockstack.org/address/1EtceTigT7sGEk2ZWxgcF1eU8KRcMTJW1c |
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
javascript:(function(){ | |
tbody = $('#currencies_wrapper').find('tbody'); | |
tbody.children() | |
.each( function(index, item){ | |
if( index >= 20 ) | |
item.remove(); | |
}); |
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
sudo npm install -g grunt-cli react-native firebase-tools n |
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
javascript:(function(){ | |
$('.cards__item').each( function( item ){ | |
console.log('item', $(this) ); | |
var disccountStr = $(this).find('.pct-off').text(); | |
var disccount = parseInt( disccountStr.substring(5, disccountStr.length-1) ); | |
if( disccount < 50 ){ | |
$(this).remove(); | |
} |
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
handleKeyDown = () => { | |
if(event.keyCode == 32) | |
this.setState({ isSpacebarPressed: true }) | |
} | |
handleKeyUp = () => { | |
if(this.state.isSpacebarPressed) | |
this.setState({ isSpacebarPressed: false }) |
NewerOlder