Skip to content

Instantly share code, notes, and snippets.

View TheBeachMaster's full-sized avatar
😈
👨‍💻

Arthur Kennedy Otieno TheBeachMaster

😈
👨‍💻
View GitHub Profile
sudo yum install wget mercurial cmake openssl-devel c-ares-devel libuuid-devel
wget https://github.com/warmcat/libwebsockets/archive/v2.1.0.tar.gz
tar xf v2.1.0.tar.gz
cd libwebsockets-2.1.0
mkdir build; cd build
cmake .. -DLIB_SUFFIX=64
sudo make install
echo "/usr/local/lib64" | sudo tee -a /etc/ld.so.conf.d/libwebsockets.conf
sudo ldconfig
ldconfig -p | grep libwebsockets
@TheBeachMaster
TheBeachMaster / Esp8266GetConnectedDeviceMac.ino
Created October 23, 2017 14:05
a little sketch which shows the use of the new WiFi events and gives the IP address of freshly SOFT_AP connected devices . →https://github.com/esp8266/Arduino/issues/2100#issuecomment-298753397
#include <ESP8266WiFi.h>
// include plain C library
extern "C" {
#include "user_interface.h"
}
#define YOUR_WIFI_SSID "******-******"
#define YOUR_WIFI_PASSWD "******-******"
boolean waitingDHCP=false;
@TheBeachMaster
TheBeachMaster / boardinfo.h
Created October 16, 2017 09:51
A header file that's gets Arduino Board Info
#if defined(TEENSYDUINO)
// --------------- Teensy -----------------
#if defined(__AVR_ATmega32U4__)
#define BOARD "Teensy 2.0"
#elif defined(__AVR_AT90USB1286__)
#define BOARD "Teensy++ 2.0"
#elif defined(__MK20DX128__)
#define BOARD "Teensy 3.0"
@TheBeachMaster
TheBeachMaster / gist:b4d1346358ec3ecb1d1edee85fd8a651
Created October 9, 2017 13:32 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@TheBeachMaster
TheBeachMaster / mainApp.xml
Created September 28, 2017 14:58
Africa's Talking Voice Examples
<?xml version="1.0" encoding="UTF-8"?>
<!-- When your app is hit,this is the response -->
<Response>
<GetDigits timeout="5" numDigits="1"> <!--Give the user 5 secons to respond...When Key 1 is pressed do something...-->
<Play url="https://someURLwhereYourMP3Resides/media/file.wav/orfile.mp3"> <!--Play some music as we wait -->
</Play>
</GetDigits>
<Redirect>
https://toSomeOtherUrlThatcanHandletheirRequest.com/stuff
</Redirect>
@TheBeachMaster
TheBeachMaster / app.js
Last active September 20, 2017 18:41
Sample Africa's Talking USSD Node App
var express = require('express')
var app = express()
var options = {
sandbox: true, //false if going to prod
apiKey: '', //Your Africas Talking Sandox or Live Key
username: '', // Your Username: "sandbox" for testing...
format: 'json'
};
var AfricasTalking = require('africastalking')(options);
@TheBeachMaster
TheBeachMaster / labels_1024.tsv
Created June 21, 2017 07:34 — forked from teamdandelion/labels_1024.tsv
TensorBoard: TF Dev Summit Tutorial
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
7
2
1
0
4
1
4
9
5
9
@TheBeachMaster
TheBeachMaster / mqttpublish.php
Created May 12, 2017 07:36 — forked from zekizeki/mqttpublish.php
Simple pure MQTT publish client written in PHP
<?php
/**
*
* The MQTTClient class allows you to connect to an MQTT message broker and publish messages
* @author [email protected]
*
* Example use
* $client = new MQTTClient("robphptest","realtime.ngi.ibm.com",1883);
* $client->connect();
# MakeModel.cntk
command=Train:WriteProbs:DumpWeights:Test
modelPath = "ModelOut\SimpleNet.snn"
deviceId = -1
dimension = 2
labelDimension = 3
precision = "float"
@TheBeachMaster
TheBeachMaster / Java Calc
Created February 20, 2015 16:18
A Simple Java Calculator
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package src.javaswingcalc1;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;