View c_create.sh
#!/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
View Bluetooth_edison.md

Commands

  • rfkill unblock bluetooth (first time)
  • hciconfig (status of bluetooth)
  • hciconfig name up (start bluetooth)
  • hciconfig name down (start bluetooth)
View gist:0e7ff9c46c3b8c89eef5
var http = require('http');
var nullList = [];
function process(key,value) {
if(value === null || value === undefined){
nullList.push({
'key':key,
'value': value
})