Skip to content

Instantly share code, notes, and snippets.

View seyyah's full-sized avatar

seyyah seyyah

View GitHub Profile

** This Gist is about how to setup a build+upload system to use with MikroC and PICKit 2 v2.55 **

  1. Create a project over MikroC with all of your preferences

  2. Go to the project's base folder and open the %ProjectName%.log

  3. You should see as first line something like this:

0 1 mikroCPIC1618.exe -MSF -DBG -pP18F452 -DL -O11111114 -fo20 -N"F:\development\Trabalhofinal\mikroc\MyProject.mcppi" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroC PRO for PIC\defs" -SP"C:\Users\Public\Documents\Mikroelektronika\mikroC PRO for PIC\uses\P18" -SP"F:\development\Trabalhofinal\mikroc" -SP"C:\Users\mplab\Documents\Trabalhofinal\mikroc" -IP"C:\Users\mplab\Documents\Trabalhofinal\mikroc" -IP"F:\development\Trabalhofinal\mikroc" "start.c" "processor.c" "main.c" "keyboard.c" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_CType.mcl" "__Lib_CString.mcl" "__Lib_CStdlib.mcl" "__Lib_CMath.mcl" "__Lib_MemManager.mcl" "__Lib_Conversions.mcl" "__Lib_Sprintf.mcl" "__Lib_PrintOut.mc

function GregToHijri(arg) {
console.log ( 'arg' );
console.log (arg);
if(arg == ""){
return "";
}
//declare a date format year,month,day sequence
var arabic_date = new Array(0,0,0);
@seyyah
seyyah / _.md
Created June 20, 2017 05:06
anim test
@seyyah
seyyah / _.md
Last active June 20, 2017 05:06
anim test
@seyyah
seyyah / gist:b28fe399140d664110e5d8d160542be1
Created June 10, 2017 13:00 — forked from tomerd/gist:4179337
init.d script to control resque + resque-scheduler with rvm and bundler
#!/bin/sh
#
# chkconfig: - 85 15
# Source function library.
. /etc/rc.d/init.d/functions
ROOT="app_path"
USER="user"
ENVIRONMENT="development"
@charset "UTF-8";
@font-face {
font-family: "feather";
src: ~"url('@{icon-font-path}feather-webfont.eot')";
src: ~"url('@{icon-font-path}feather-webfont.eot?#iefix') format('embedded-opentype')",
~"url('@{icon-font-path}feather-webfont.woff') format('woff')",
~"url('@{icon-font-path}feather-webfont.ttf') format('truetype')",
~"url('@{icon-font-path}feather-webfont.svg#featherregular') format('svg')";
font-weight: normal;
@seyyah
seyyah / acer_one_10_porteus722.log
Last active June 1, 2017 12:09
722-Porteus-Kiosk-4.4.0-x86_64-linux-4.12_firefox54.iso debug message
Please copy (Ctrl+a -> Ctrl+c) and send this report to [email protected] in case of hardware/software/configuration issues.
KIOSK SIGNATURE:
U2FsdGVkX198wJ35Qo1/3QztWws13LDp2cb4knKXtqesivCrxbvqf9WAWtZc9G8L
Wkef3Ga/gOFZywp4FnlhRCbbj94IRGIIOx+OVCuZUF4dceO9SNM4VBbwkhnkgO6W
FVFdXS2/bTraaZ63ty6vML35ALFgEXSZLYnukKWzi/AkBpNzD+oY4jHWLvfip4M0
03Usf0VTFnY7J4dx8mtm4Xx8VPiPNeBGelaKbgRs5m976BxKn8ss0srp2gSBGxdl
S+0ka7D0qeGbPRKHzXX4ZiTiQJTp56ihJBknA/lTQ4v1kWyJ3wPDyfksafMSOBwm
MUPR5q6A4SRXkFto64Njc4HSlZy0d9NmlmvVxpC1sGV+2YbY1/V4ivbh21czelzX
@seyyah
seyyah / porteus_kiosk.log
Last active May 18, 2017 06:29 — forked from anonymous/porteus_kiosk.log
Acer One 10 Porteus Kiosk Debug Log Messages. ISO: Porteus Kiosk 3.7.0-i586; VirtualBox 5.1.22r115126 (Qt5.6.2)
Please copy (Ctrl+a -> Ctrl+c) and send this report to [email protected] in case of hardware/software/configuration issues.
KIOSK SIGNATURE:
U2FsdGVkX1+HaCn0EATrsfHyndMqHxNWNt43C5DvRYgNdmeNIiH1yjCAv+3LZfEL
Te+lohopPizSxtifEQoq4iwRULt3k98UZyfZTg5ju533f2KEO2aZZ4ekgtDrzEFH
nWMu8z7G8zikJeeUe6l26HR0XQKoapLXckag5dk17b2Zexr3LSTXferSysDnu/pZ
yZOZEJwJrxG4gPSfb9jhTkZ7FTiwO35DQlIxhPkwvsg1T3k4WbP2H0FUihApzdLh
Tes8bFtg25s950uHLKoMvYKSF3k9CizCli7O1Kk7Uw4orBJgAy6fuQWi6MnjMf28
nEiVBR30yssa3xBIBvgWyu6qoYULATNqpnrEUnpdHcMmsv1OIhw603NZqnvwB5hj
@seyyah
seyyah / server.js
Last active February 18, 2017 20:36
SIMPLE ANGULARJS/NODEJS Server 1) npm install connect serve-static 2) node server.js 3) http://localhost:8080/yourfile.html
//
// Simple nodejs server for running the sample.
//
// http://stackoverflow.com/questions/6084360/node-js-as-a-simple-web-server
//
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
@seyyah
seyyah / client.html
Last active July 28, 2018 10:51
Serial Port JSON Server - Minimal Websocket Client Example
<!DOCTYPE html>
<meta charset="utf-8" />
<title>WebSocket Test</title>
<script language="javascript" type="text/javascript">
//var wsUri = "ws://echo.websocket.org/";
var wsUri = "ws://SERVER_IP_ADDRESS:8989/ws";
var output;
function init()
{