Skip to content

Instantly share code, notes, and snippets.

View VincentTam's full-sized avatar
๐Ÿ€
Rolling around

Vincent Tam VincentTam

๐Ÿ€
Rolling around
View GitHub Profile
@VincentTam
VincentTam / determinant-sildes.tex
Created May 1, 2025 20:57
Source code for the LaTeX beamer slides for my presentation on determinants for Simply Study Group
\documentclass[dvipsnames]{beamer}
\usetheme{Madrid}
\usepackage{annotate-equations}
\renewcommand{\eqnhighlightshade}{30}
\usepackage{gensymb}
\usepackage{quiver} % for "swap pathways"
\usepackage{cancel}
\usetikzlibrary{graphs.standard, quotes} % for coins
\usepackage{wrapfig} % for coins
\usepackage{extpfeil} % for extensible arrows
@ElefHead
ElefHead / Installing_theano_and_pymc3.md
Last active January 16, 2025 21:03
A guide to install pymc3, theano with CUDA on windows 10 -- Dec 2019

I am writing this gist because I spent 6 hours navigating links trying to get Theano to work with CUDA on windows 10. Hopefully, you wouldn't have to. Once theano is setup and running, you can install pymc3 and it all works. I had tensorflow-gpu setup and running on windows 10; it isn't as simple as pip install theano.

I will list down the instructions, with the links where I found them. Hope this helps someone.

This set of instructions depend on anaconda. Also, this is sort of hacky in the end.

Ok let's begin.


@VincentTam
VincentTam / mydual.m
Last active February 21, 2017 09:32
My Octave dual simplex tableau generator
# Show dual simplex tableau
# Prereq: matrix A, vectors b,c, basis
printf("Current basis:"); printf(" %2i", basis); disp("");
B = A(:,basis); cB = c(basis);
Bm1A = B\A; xB = B\b; zrow = cB'*Bm1A-c'; zval = cB'*xB;
if length(xB(xB<0)) >= 1
ovp = find(xB==min(xB(xB<0)))(1);
r = zrow./Bm1A(ovp,:); # ratio for display
T = [0:size(A)(2) 0; basis' Bm1A xB; 0 zrow zval; 0 r 0]
# compute min ratio
@VincentTam
VincentTam / mytest.m
Last active February 20, 2017 13:34
My Octave simplex tableau generator
# Show simplex tableau
# Prereq: matrix A, vectors b,c, basis
printf("Current basis:"); printf(" %2i", basis); disp("");
B = A(:,basis); cB = c(basis);
Bm1A = B\A; x_B = B\b; zrow = cB'*Bm1A-c'; zval = cB'*x_B;
nv = find(zrow==min(zrow(zrow<=0)))(1);
r = x_B./Bm1A(:,nv);
T = [0:size(A)(2) 0 0; basis' Bm1A x_B r; 0 zrow zval 0]
if length(r(r>=0)) >= 1
ovp = find(r==min(r(r>=0)))(1);
@VincentTam
VincentTam / sample-output.txt
Last active January 25, 2017 22:04
Octave script for French postal fee with min no. of stamps, run on http://octave-online.net/
Valeur de timbre (โ‚ฌ) | Quantitรฉ
---------------------+---------
0.71 | 0
0.73 | 0
1.46 | 1
2.92 | 6
0.85 | 0
1.70 | 0
3.40 | 7
1.30 | 0
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active January 25, 2025 20:12
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@rxaviers
rxaviers / gist:7360908
Last active May 21, 2025 13:44
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@joyrexus
joyrexus / README.md
Last active May 16, 2025 01:54 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@gizmaa
gizmaa / Plot_Examples.md
Last active May 15, 2025 02:57
Various Julia plotting examples using PyPlot