- rfkill unblock bluetooth (first time)
- hciconfig (status of bluetooth)
- hciconfig
name
up (start bluetooth) - hciconfig
name
down (start bluetooth)
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
var http = require('http'); | |
var nullList = []; | |
function process(key,value) { | |
if(value === null || value === undefined){ | |
nullList.push({ | |
'key':key, | |
'value': value | |
}) |
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 | |
# 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 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 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}) ) |