I hereby claim:
- I am lonesword on github.
- I am lonesword (https://keybase.io/lonesword) on keybase.
- I have a public key ASC9kr46VgC-qjCTOgDYo7jXQ0azhN2aZpx_ncjYlc11rgo
To claim this, I am signing this object:
| /* | |
| Usage : ./a.out <pythonfile> | |
| The transliterated file will be saved as original filename + ml.py | |
| Remember to place the file in the examples subdir in the libvarnam codebase | |
| wont work for multiple literals in the same line | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> |
| import cv2,math | |
| import time | |
| import numpy as np | |
| from pymouse import PyMouse | |
| class ColourTracker: | |
| def __init__(self): | |
| cv2.namedWindow("colourTrackerWindow",cv2.CV_WINDOW_AUTOSIZE) | |
| cv2.namedWindow("alternateWindow",cv2.CV_WINDOW_AUTOSIZE) | |
| self.capture=cv2.VideoCapture(1) | |
| self.scale_down=1 |
| from aubio import source, pitch, freqtomidi, sink | |
| from pysoundcard import Stream | |
| if __name__ == '__main__': | |
| win_s = 1024 #fft size | |
| hop_s = 512 #hop size. Whatever that means | |
| s = Stream(block_length = hop_s) |
| <!-- | |
| Cohen-Sutherland outcode algorithm using html5 canvas and javascript. Click to clip lines sequentially | |
| Copyright (C) 2014 Kevin Martin Jose | |
| --> | |
| <!-- | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. |
| <!-- | |
| Sutherland-Hodgson polygon clipping algorithm using html5 canvas and javascript. Click to clip polygon sequentially | |
| Copyright (C) 2014 Kevin Martin Jose | |
| --> | |
| <!-- | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. |
| var Globals = { | |
| originX: 0, | |
| originY: 0, | |
| rectangles: [] | |
| }; | |
| function Packer(ratio, w_, h_){ | |
| this.ratio = ratio; | |
| this.width = w_; |
| //aliases for box2d stuff. Makes life easier. | |
| var b2Vec2 = Box2D.Common.Math.b2Vec2 | |
| , b2AABB = Box2D.Collision.b2AABB | |
| , b2BodyDef = Box2D.Dynamics.b2BodyDef | |
| , b2Body = Box2D.Dynamics.b2Body | |
| , b2FixtureDef = Box2D.Dynamics.b2FixtureDef | |
| , b2Fixture = Box2D.Dynamics.b2Fixture | |
| , b2World = Box2D.Dynamics.b2World | |
| , b2MassData = Box2D.Collision.Shapes.b2MassData |
| function escalate_ticket(event) | |
| { | |
| sheet = SpreadsheetApp.getActiveSheet() | |
| var range = sheet.getDataRange(); | |
| var values = range.getValues(); | |
| // 0 indexed. Col 6 contains email? Enter 5 here | |
| var email_col_num = 5 | |
| var is_tat_breached_col_num = 3 | |
| var comment_col_num = 4 |
I hereby claim:
To claim this, I am signing this object:
| extern crate rand; | |
| use std::io; | |
| use rand::Rng; | |
| fn main() { | |
| let mut secret_passcode_str = String::new(); | |
| println!("What's the secret passcode?"); | |
| io::stdin().read_line(&mut secret_passcode_str).expect("Failed to read line"); | |
| let secret_passcode = secret_passcode_str.trim().parse::<i32>().expect("Wanted a number"); |