Skip to content

Instantly share code, notes, and snippets.

@farhanjk
farhanjk / SampleAuthenticator.kt
Last active May 19, 2022 20:20
Sample Okhttp3 Authenticator
/*
SampleAuthenticator (c) by Farhan Khan
SampleAuthenticator is licensed under a
Creative Commons Attribution 3.0 Unported License.
http://creativecommons.org/licenses/by/3.0/
*/
class SampleAuthenticator(
@farhanjk
farhanjk / gist:6262535
Created August 18, 2013 16:30
Convert Fortran code to Matlab code
Download f2matlab.
http://engineering.dartmouth.edu/~d30574x/consulting/f2matlab_4.0.zip
1. Put the f2matlab file in a folder (eg. /home/khan/)
2. Open matlab and add the documents directory to your matlab path
- type " addpath '/home/khan' " at the matlab command prompt.
3. Call the f2matlab function with your fortran program name:
- type " f2matlab('msphere.f') " at the matlab command prompt.