Skip to content

Instantly share code, notes, and snippets.

View goatandsheep's full-sized avatar
⛸️
carving my own path

Kemal Ahmed goatandsheep

⛸️
carving my own path
View GitHub Profile
@goatandsheep
goatandsheep / filetest.java
Last active August 29, 2015 14:19
Compare 3 different input files with 3 different output files
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import org.junit.*;
import static org.junit.Assert.*;
import java.io.*;
@goatandsheep
goatandsheep / Swift.md
Last active August 29, 2015 14:24
My notes on swift

iOS Development

  1. Set up apple developer account

Hints

  • If you want to restrict orientation, there is a secondary tag that is for iPad:
@goatandsheep
goatandsheep / Texify-Mathjax.js
Last active March 6, 2023 07:57
[Deprecated] A Tampermonkey / Greasemonkey script that turns LaTeX code on page into mathematical symbols using MathJax
// ==UserScript==
// @name TeXify the World MathJax
// @namespace
// @version 1.0
// @description Enables MathJax to process LaTeX on all websites. Based off SOUP (Stack Overflow Unofficial Patch) and http://www.math.ucla.edu/~robjohn/math/mathjax.html.
// @include *
// @copyright
// ==/UserScript==
/*
var mathjaxVersion = "http://cdn.mathjax.org";

Tutorial 2016-03-31

  • Kemal Ahmed

  • example is posted online, mirrors the renderer function
  • Should not need to do any more then just add pragmas to the code
  • bottleneck is the renderer 2 fro loops that iterate through all pixels in the image, this process is super parallel, no dependencies
@goatandsheep
goatandsheep / WindowsMaintainence.md
Created October 5, 2016 03:43
Tools for keeping Windows clean

##Programs

  1. Program auto-update: FileHippo
  2. Cache Cleaner: Glary Utilities
  3. Uninstall tool: Revo
  4. AntiVirus: Avast

##Tips

  • Delete programs you don't use anymore or don't know
@goatandsheep
goatandsheep / elTypeConverter.html
Last active October 23, 2016 03:32
Convert from one element type to another
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<link id="elToReplace" tag="img" type="image/jpeg" href="https://www.gravatar.com/avatar/6275d97cde41c8c0d2f0941caf42abf7" class="tormedia">
<h1>I am formatted with a linked style sheet</h1>
<p>Me too!</p>
</body>
import scipy as sp
pi = sp.pi
def div(x,y):
try:
return x/y
except:
return (x+1e-15)/(y+1e-15)
L = 4
w = sp.linspace(-pi, pi, 501)
#w = sp.arange(-pi,pi, pi/250)
  1. Get all USB and regular microphones
  2. For microphones that go in headphone jack:
    1. Get in/out splitter
    2. For multiple mics, use splitter in mic jack
    3. Put mic in in
  3. Get HDMI-Thunderbolt adaptor (sound, graphics)
  4. Connect HDMI from TV to adaptor
  5. Go to YouTube TV
  6. Listen to Microphones:
  7. Go to Audio Settings and Choose microphones as line-in

##Integration

  • non-identical SDK
  • Github
  • They will help with pull requests
  • Support team supports API, chat phone #
  • Coupon Codes not supported
  • Subscription available, but best to just prompt every month; create profile and charge profile even for individual payments
  • Dealing with errors: no webhooks, run weekly chron for list of errors
  • Think of single flow: save the card data regardless.

##Payment Information

###Acronyms

  • Electronic Fund Transfer (EFT):
  • Payment Service Provider (PSP): account type that results in processing an online application

##ToS

You need to have generated a provider id first.