Skip to content

Instantly share code, notes, and snippets.

Rust error:
rustc: /build/buildd/rust-0.9-0.9/src/llvm/lib/IR/Instructions.cpp:549: void llvm::InvokeInst::init(llvm::Value*, llvm::BasicBlock*, llvm::BasicBlock*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Invoking a function with a bad signature!"' failed.
Aborted (core dumped)
use std::io::signal::{Listener, Interrupt};
fn main() {
let mut listener = Listener::new();
@anatg
anatg / gist:11128910
Last active August 29, 2015 14:00
settings file
Django settings for dj project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
@anatg
anatg / script.sh
Last active August 29, 2015 14:00
#!/bin/bash
echo $(whoami)
function create_directory {
mkdir "monitor/"
#mv client.py file_watcher.py transfer_manager.py /home/$(whoami)/OneDir/monitor/
}
if [ -d /home/$(whoami)/OneDir/ ]
then
if [ -d /home/$(whoami)/OneDir/monitor/ ]
@anatg
anatg / gist:814f88b29f2afcaa5e2a
Last active August 29, 2015 14:07
train_model(test_data, train_data)
def train_model(test_data, train_data):
svm = SVC()
svm.fit(test_data[:, :-1], test_data[:, -1])
svm.predict(train_data[:, :-1])
print svm.score(train_data[:, :-1], train_data[:, -1])
@anatg
anatg / gist:e8e9887a36519a1232f8
Created February 28, 2015 19:43
BizSpark code for Hack.UVA
The information is below. Clicking the signup link will redirect to the BizSpark registration page and will use an auto-approved enrollment code “KSKWsQBQHM”, which you should see in Step 2.
Make sure you’re signed out of any existing Microsoft accounts before you start the signup process for a new account.
Sign up through this link, for instant approval:
· http://www.microsoft.com/bizspark/Register.aspx?SecurityCode=KSKWsQBQHM
· Here’s a short URL that you can circulate: http://aka.ms/hackuva2015
More info:
· BizSpark info on my page: http://wakeupandcode.com/bizspark/
Verifying I am +anat on my passcard. https://onename.com/anat

I hereby claim:

  • I am anatg on github.
  • I am anat (https://keybase.io/anat) on keybase.
  • I have a public key whose fingerprint is 20F1 818A 9B99 13BF A5E8 5E89 CEF4 9011 318A 1A46

To claim this, I am signing this object:

{
Process: Deckset [33717]
Path: /Applications/Deckset.app/Contents/MacOS/Deckset
Identifier: com.unsignedinteger.Deckset
Version: 1.6.1 (1955)
App Item ID: 847496013
App External ID: 817211780
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Deckset [33717]
User ID: 88473738