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
# train_grpo.py | |
# | |
# See https://github.com/willccbb/verifiers for ongoing developments | |
# | |
import re | |
import torch | |
from datasets import load_dataset, Dataset | |
from transformers import AutoTokenizer, AutoModelForCausalLM | |
from peft import LoraConfig | |
from trl import GRPOConfig, GRPOTrainer |
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 Data.Text qualified as T | |
import Playground.Contract | |
import Plutus.Contract | |
import PlutusTx.Prelude | |
import Prelude qualified as Haskell | |
-- | A 'Contract' that logs a message. | |
hello :: Contract () EmptySchema T.Text () | |
hello = logInfo @Haskell.String "Hello, world" |
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
Removing Remote management after fresh Mac OS installation | |
https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd#gistcomment-3783117 | |
https://www.reddit.com/r/mac/comments/pi9beh/bypass_remote_management_on_macbook_pro_after/ | |
https://www.youtube.com/watch?v=T1PK37ITJT8&ab_channel=MohamedNashat | |
https://apple.stackexchange.com/questions/311052/why-do-i-get-a-remote-management-step-when-installing-high-sierra | |
https://apple.stackexchange.com/questions/297293/turning-off-device-enrollment-notifications-on-macbook-pro |
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
echo "1. Creating mongo dump." | |
mkdir ~/backup | |
cd ~/backup | |
mongodump -d avalon -o ~/backup/ | |
echo "" | |
tar_file_name="avalon.tar.gz" #$(TZ=GMT date +"%d%h%Y_%H").tar.gz | |
echo "2. Making tarball "$tar_file_name | |
cd avalon | |
tar -czvf $tar_file_name * |
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
Some recent dtube help videos for new users. Soon we will have a tutorial page I hope where all the helpful videos are linked as a guide for new users. | |
Dtube - How To Videos/Tutorials | |
How does dtube work ! By clixmoney | |
https://d.tube/#!/v/clixmoney/ioww4q9qtz3 | |
How to use trade DTube Coins on Uniswap by tibfox | |
https://d.tube/#!/v/dtube/QmZCWiZAqpQKz9xmyrXNP159deRnNxTeuvi4F7Nn1ztnNo |
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
#!/bin/bash⏎ | |
⏎ | |
second=1⏎ | |
csec=30⏎ | |
sle |
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
#!/bin/bash⏎ | |
⏎ | |
# Repo to be used currently | |
# git clone https://github.com/techcoderx/avalon | |
# Checkout to branch tipped-vote-testnet | |
# git checkout tipped-vote-testnet | |
# Instruction 1: Run on a different http_port and p2p port if you are running mainnet on the same machine | |
# Ports configuration⏎ |
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
'use strict' | |
const IPFS = require('ipfs') | |
const OrbitDB = require('../src/OrbitDB') | |
const postAttrs = ["postId", "description", "likes", "location", "mediaUrl", "mediaIPFSHash", "ownerId", "timestamp", "username"] | |
const postDump = {} | |
postDump["postId"] = ['1jdyU1aFlaD90Er1h0KL' , '27nyFXnnK02P4I3GYdjK', ''] | |
postDump["description"] = ['View from Saxony Lake Beach.' , 'hi'] | |
postDump["likes"] = [100, 10] |
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
# Thrivecash lending app | |
print("Thrivecash lending app balance calculation.") | |
print() | |
print ("What's the APR(Annual percentage rate %) I am paying for this loan? Is it better than the traditional credit card or personal loans?") | |
print() | |
print("Links for further info on Quora: https://www.quora.com/What-is-ThriveCash") | |
print() | |
# Money you borrowed | |
Bini = 5000 |
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
diff --git a/MeshTestbed/C++/DemoInfo.cpp b/MeshTestbed/C++/DemoInfo.cpp | |
index 1fc65a6..c04b00c 100644 | |
--- a/MeshTestbed/C++/DemoInfo.cpp | |
+++ b/MeshTestbed/C++/DemoInfo.cpp | |
@@ -25,6 +25,7 @@ CDemoInfo::CDemoInfo(CWnd* pParent /*=NULL*/) | |
: CDialogBar() | |
, bCheck1(true) | |
, bCheck2(true) | |
+ , mTime(0) | |
{ |