Skip to content

Instantly share code, notes, and snippets.

View brianmcmichael's full-sized avatar

Brian L. McMichael brianmcmichael

View GitHub Profile
@brianmcmichael
brianmcmichael / yardoc_cheatsheet.md
Last active August 29, 2015 14:26 — forked from chetan/yardoc_cheatsheet.md
YARD cheatsheet

YARD CHEATSHEET http://yardoc.org

cribbed from http://pastebin.com/xgzeAmBn

Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.

Modules

Namespace for classes and modules that handle serving documentation over HTTP

@brianmcmichael
brianmcmichael / picalc.java
Created September 21, 2015 00:49
Pi Calculator Java
package picalc;
import java.math.BigDecimal;
import java.math.MathContext;
public class Main {
public static void main(String[] args) {
BigDecimal num = new BigDecimal(4.0);

OnDemand (PUDL Apps)

Nodes

websvcs02.osc.edu

  • development apps for OnDemand as well as Passenger apps are run here
  • epi-dev.osc.edu runs here
import ecdsa
import ecdsa.ellipticcurve as EC
curve = ecdsa.SECP256k1
x = int('11db93e1dcdb8a016b49840f8c53bc1eb68a382e97b1482ecad7b148a6909a5c', 16)
y = int('b2e0eaddfb84ccf9744464f82e160bfa9b8b64f9d4c03f999b8643f656b412a3', 16)
point = EC.Point(curve.curve, x, y)
pubkey = ecdsa.VerifyingKey.from_public_point(point, curve)
hash1 = 90774958364900180671716888080665726921328827653065727390791155349203800699667

Keybase proof

I hereby claim:

  • I am brianmcmichael on github.
  • I am advanceduser (https://keybase.io/advanceduser) on keybase.
  • I have a public key ASCDlyAvkSs-_3w_xG7E7udy2P5Ih5ku8PTyJtRG7QWFIwo

To claim this, I am signing this object:

@brianmcmichael
brianmcmichael / .vimrc
Created October 9, 2019 19:09 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on