Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Joe Chasinga jochasinga

🏠
Working from home
Block or report user

Report or block jochasinga

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
@royshouvik
royshouvik / remoteDebugging.md
Last active Jul 31, 2019
Describes how to setup remote debugging on an Android device using Chrome
View remoteDebugging.md

Remote Debugging on Android with Chrome

The way your web content behaves on mobile can be dramatically different from the desktop experience. Remote debugging with Chrome DevTools lets you debug live content on your Android device from your development machine.

Debugging Chrome for Android using the Chrome Developer Tools

Remote debugging on Android supports:

  • Debugging websites in browser tabs.
  • Debugging WebViews in native Android apps.
@denji
denji / golang-tls.md
Last active Oct 16, 2019 — forked from spikebike/client.go
Simple Golang HTTPS/TLS Examples
View golang-tls.md

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@koistya
koistya / React-Directory-Layout.md
Last active Aug 3, 2019
File and folder naming convention for React.js components
View React-Directory-Layout.md

File and folder naming convention for React.js components

Directory Layout #1

/actions/...
/components/common/Link.js
/components/common/...
/components/forms/TextBox.js
/components/forms/TextBox.res/style.css
@staltz
staltz / introrx.md
Last active Oct 16, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@DavidVaini
DavidVaini / round.go
Created Apr 9, 2014
Arggh Golang does not include a round function in the standard math package. So I wrote a quick one.
View round.go
package main
import (
"log"
"math"
)
func Round(val float64, roundOn float64, places int ) (newVal float64) {
var round float64
pow := math.Pow(10, float64(places))
@patrickleet
patrickleet / gist:6312627
Created Aug 22, 2013
meteor.js cheatsheet
View gist:6312627
// Assuming the following directory structure
/*
app/
.meteor/
client/
server/
collections/
*/
// 1. Create a collection
@snipe
snipe / flattr_markdown
Last active Sep 5, 2018
Markdown to add a Flattr button to your GitHub repo's Readme file
View flattr_markdown
[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=YOUR_FLATTR_USERNAME&url=YOUR_HTTP_GITHUB_REPO_URL&title=YOUR_GH_PROJECT_TITLE&language=GH_PROJECT_PROG_LANGUAGE&tags=github&category=software)
@sporsh
sporsh / rpcserver.py
Created Oct 23, 2012
A Twisted example to demo deferreds, client/server protocols and endpoints
View rpcserver.py
import time
from twisted.python import failure
from twisted.internet import reactor, defer, task
from twisted.internet.protocol import Protocol
# Define some messages for our protocol
MSG_REQUEST = '>'
MSG_REQ_ACK = ':'
MSG_REQ_SUCCEEDED = '='
View binaryTree.ml
(* Unbalanced Binary Tree *)
type 'a tree =
Node of 'a * 'a tree * 'a tree
| Leaf;;
(* e.g Node (5, Leaf, Leaf) *)
(* val insert : ’a -> ’a btree -> ’a btree = <fun> *)
let insert x s = Node (x, Leaf, s);;
@zbroyar
zbroyar / sign_message.ml
Created Mar 8, 2011
Sign a message with OCaml Cryptokit sha256 & RSA
View sign_message.ml
let (>>) x f = f x ;;
let hash = hash_string (Hash.sha256()) ;;
let sign_of_message key msg =
msg >> hash >>
(pkcs1v1pad key) >>
(RSA.sign key) >>
strrev
;;
You can’t perform that action at this time.