Skip to content

Instantly share code, notes, and snippets.

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

Arthur Kennedy Otieno TheBeachMaster

😈
👨‍💻
View GitHub Profile
@TheBeachMaster
TheBeachMaster / Calculator
Created November 14, 2014 10:30
My Calculator app
/*
* 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 javaswingcalc1;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
@TheBeachMaster
TheBeachMaster / Bouncing Ball
Created November 20, 2014 12:04
Ball bouncing off screen applet
package bouncingball;
import java.awt.*;
import java.applet.*;
import java.util.Timer;
import java.util.TimerTask;
public class BouncingBallApplet extends Applet {
@TheBeachMaster
TheBeachMaster / Numerical_manipulations.py
Last active August 29, 2015 14:11
Introductory Python on simple list manipulations
# coding=utf-8
# coding=utf-8
__author__ = 'Kennedy Otieno'
# let's begin with lists
agelist = [12, 22, 33, 14, 92, 65, 74, 13, 98, 44, 22, 78]
firstsum = agelist[0] + agelist[4] # we'd like to manipulate the data stored in agelist we should get 104
print(firstsum)
@TheBeachMaster
TheBeachMaster / intro.py
Created December 16, 2014 13:46
Another Python intro for the beginner
# coding=utf-8
__author__ = 'Kennedy Otieno'
# let's create the famous hello world string. # please note you can also use sublime text editor or notepad++ as shown:
# to generate an output use the print statement
print "Hello World!!"
# lets make an input; for inputs it is proper practise you use prompts
# <- these are comments in Python.
@TheBeachMaster
TheBeachMaster / StudentDetails.java
Created February 10, 2015 12:59
This is a simple Java application showing how to use the JOption Panes
package com.details.students;
import javax.swing.*;
public class StudentDetails {
public static void main(String[] args) {
// write your code here
String name,regno,course,module,year,sem;
@TheBeachMaster
TheBeachMaster / Main.java
Created February 17, 2015 06:09
Input Stream Reader
package com.demo.input;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
@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;
# MakeModel.cntk
command=Train:WriteProbs:DumpWeights:Test
modelPath = "ModelOut\SimpleNet.snn"
deviceId = -1
dimension = 2
labelDimension = 3
precision = "float"
@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 rob.s.smart@gmail.com
*
* Example use
* $client = new MQTTClient("robphptest","realtime.ngi.ibm.com",1883);
* $client->connect();
@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