- rfkill unblock bluetooth (first time)
- hciconfig (status of bluetooth)
- hciconfig
nameup (start bluetooth) - hciconfig
namedown (start bluetooth)
This file contains hidden or 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
| ##### Quantitative Agent ##### | |
| def quant_agent(state: AgentState): | |
| """Analyzes technical indicators and generates trading signals.""" | |
| show_reasoning = state["metadata"]["show_reasoning"] | |
| data = state["data"] | |
| prices = data["prices"] | |
| prices_df = prices_to_df(prices) | |
| # Calculate existing indicators |
This file contains hidden or 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 | |
| _projects() { | |
| local cur prev opts | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| prev="${COMP_WORDS[COMP_CWORD-1]}" | |
| opts=$(todolist list by p | cut -d ' ' -f 2 | grep -E "^[^\\[]+$" | sed -e 's/^/+/g') | |
| if [[ ${cur} == +* ]] ; then | |
| COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |
This file contains hidden or 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
| module Main where | |
| import Prelude | |
| import Effect (Effect) | |
| import Effect.Console (log) | |
| data Maybe a = Nothing | Just a | |
| a :: Maybe Int |
This file contains hidden or 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 | |
| # first argument is the name of the folder and the c file | |
| fileName=$1 | |
| # change to the desired folder | |
| filePath='/Users/apple/Documents/coding/c/c_generated/' | |
| folderToCreate="$filePath$fileName" | |
| fileToCreate="$filePath$fileName/$fileName.c" | |
| helloWorld="#include<stdio.h>\n\nint main(){\n\tprintf(\"Hello world\");\n}\n" | |
| if [ ! -d "$folderToCreate" ]; then |
This file contains hidden or 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
| var http = require('http'); | |
| var nullList = []; | |
| function process(key,value) { | |
| if(value === null || value === undefined){ | |
| nullList.push({ | |
| 'key':key, | |
| 'value': value | |
| }) |