Skip to content

Instantly share code, notes, and snippets.

View Samathy's full-sized avatar

Samathy Barratt Samathy

View GitHub Profile
@Samathy
Samathy / git_pull_dirs.fish
Created December 24, 2016 17:22
Small script to run 'git pull' in all subdirectories of the calling directory. (useful for updating plugins)
for dir in (ls)
cd $dir
if not ls .git
cd ../
continue
end
git pull
cd ../
end
@Samathy
Samathy / dlangSillyStringComparasonError.d
Created February 28, 2016 18:48
One change in character completly changes the behaviour of this.
import std.string;
import std.stdio;
void main()
{
string s ="string";
string[4] c = ['a','g','t','s'];
string[4] d = ["a","g","t","s"];
#include <stdlib.h>
struct test
{
char c;
char i;
};
int main()

Keybase proof

I hereby claim:

  • I am samathy on github.
  • I am samathy (https://keybase.io/samathy) on keybase.
  • I have a public key whose fingerprint is 04A6 D3A6 0F52 4A12 7D43 6633 3584 0BB4 8E6D 217A

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am samathy on github.
* I am samathy (https://keybase.io/samathy) on keybase.
* I have a public key whose fingerprint is 04A6 D3A6 0F52 4A12 7D43 6633 3584 0BB4 8E6D 217A
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am samathy on github.
  • I am samathy (https://keybase.io/samathy) on keybase.
  • I have a public key whose fingerprint is 1553 E90C EAFD D5A9 BA8F D7A2 9581 9B31 6E5D 5011

To claim this, I am signing this object: