Skip to content

Instantly share code, notes, and snippets.

Saviour Gidi saviour123

Block or report user

Report or block saviour123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View clean.java
import com.fazecast.jSerialComm.SerialPort;
public class clean {
public static void main(String[] args) {
SerialPort[] ttyPort = SerialPort.getCommPorts();
for (SerialPort i: ttyPort) {
i.openPort();
System.out.println(i.bytesAvailable());
@saviour123
saviour123 / create_index.sh
Created Jun 1, 2017 — forked from bonzanini/create_index.sh
Elasticsearch/Python test
View create_index.sh
curl -XPOST http://localhost:9200/test/articles/1 -d '{
"content": "The quick brown fox"
}'
curl -XPOST http://localhost:9200/test/articles/2 -d '{
"content": "What does the fox say?"
}'
curl -XPOST http://localhost:9200/test/articles/3 -d '{
"content": "The quick brown fox jumped over the lazy dog"
}'
curl -XPOST http://localhost:9200/test/articles/4 -d '{
@saviour123
saviour123 / bloggy.py
Created Dec 21, 2016
Simple Static blog generator.
View bloggy.py
from flask import Flask, render_template, flash, url_for
import markdown
import os
from werkzeug import cached_property
from flask_flatpages import FlatPages
import yaml
DEBUG = True
View incrementing_py.py
rec=0
def autoIncrement(something):
global rec
pStart = 1 #adjust start value, if req'd
pInterval = 1 #adjust interval value, if req'd
if (rec == 0):
rec = pStart
else:
rec = rec + pInterval
@saviour123
saviour123 / index.html
Created Jul 31, 2016 — forked from d3noob/index.html
leaflet.js map with line and options
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Simple Leaflet Map</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"
/>
</head>
@saviour123
saviour123 / has_no_e.py
Last active Feb 18, 2016
This python script prints out all words that have no 'e' in them from the word.txt
View has_no_e.py
The words.txt file is located here. Thnaks so much for your help so far.
http://www.greenteapress.com/thinkpython/code/words.txt
View mySimpleform
##flasin script
from flask import Flask, render_template, request
app = Flask(__name__)
#create a db
DATABASE = 'flaskr.db'
DEBUG = True
SECRET_KEY = 'development key'
#connect_db
You can’t perform that action at this time.