Skip to content

Instantly share code, notes, and snippets.

Avatar

Fazlul Shahriar fhs

View GitHub Profile
View tsprotocol.diff
--- ../tsprotocol.go 2019-09-10 21:46:42.692636315 -0400
+++ /tmp/tsprotocol.go 2019-09-10 22:01:13.649741464 -0400
@@ -1,31 +1,11 @@
// Package protocol contains data types and code for LSP jsonrpcs
// generated automatically from vscode-languageserver-node
// commit: fda16d6b63ba0fbdbd21d437ea810685528a0018
-// last fetched Fri Sep 06 2019 18:16:51 GMT-0400 (Eastern Daylight Time)
+// last fetched Tue Sep 10 2019 22:01:03 GMT-0400 (Eastern Daylight Time)
package protocol
View keybase.md

Keybase proof

I hereby claim:

  • I am fhs on github.
  • I am fhs (https://keybase.io/fhs) on keybase.
  • I have a public key whose fingerprint is 44E4 70C5 0B15 32BD 15BA 1F11 E22F 4694 07C3 FFA3

To claim this, I am signing this object:

@fhs
fhs / tilefigs
Created Mar 31, 2015
Tile all open matplotlib figures
View tilefigs
#!/bin/bash
#
# Tile all open matplotlib figures
screenoffset=1920
screenwidth=2560
figwidth=640
figheight=534
x=$screenoffset
@fhs
fhs / 10-magics.py
Created Feb 20, 2015
some ipython magic commands
View 10-magics.py
from __future__ import print_function
def loadnpz_impl(self, params=''):
"""Load a npz file into user namespace.
%loadnpz <filename.npz>
"""
import numpy as np
ip = get_ipython()
View gist:5660054
# FPR TPR Accuracy Precision
1 0.6250 0.8846 0.8372 0.9324
2 0.3077 0.9178 0.8837 0.9437
3 0.5556 0.9605 0.9059 0.9359
4 0.6111 0.9552 0.8353 0.8533
5 0.3333 0.9143 0.8706 0.9275
6 0.4545 0.9054 0.8588 0.9306
7 0.4615 0.8889 0.8353 0.9143
8 0.6154 0.9028 0.8235 0.8904
9 0.4615 0.9444 0.8824 0.9189
@fhs
fhs / p0.cpp
Created Dec 26, 2011
Assignment #5 solution
View p0.cpp
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cmath>
#include <cstdlib>
#include "p0.h"
using namespace std;
READWRITE::READWRITE(void)
@fhs
fhs / asmt4.cpp
Created Dec 13, 2011
Assignment #4 solution
View asmt4.cpp
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string>
#include <fstream>
using namespace std;
const int WordListSize = 10000;
const int ParaWidth = 60; // paragraph width
@fhs
fhs / asmt3.cpp
Created Nov 24, 2011
Assignment #3
View asmt3.cpp
#include <iostream>
#include <string>
using namespace std;
const int NAccounts = 3;
string Usernames[NAccounts] = {
"alice",
"bob",
"eve",
View circle.cpp
// Draws a circle
#include <iostream>
using namespace std;
int
main(void)
{
int r; //radius
@fhs
fhs / 1.cpp
Created Oct 27, 2011
Assignment #2 solution
View 1.cpp
// #1. Ex 5.2 question 9 solution
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int
main(void)