This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use rayon::prelude::*; | |
use std::fs; | |
use std::time::Instant; | |
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>; | |
#[derive(Debug, PartialEq)] | |
struct Asteroid { | |
x: i32, | |
y: i32, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs; | |
use std::time::Instant; | |
#[derive(Debug, PartialEq)] | |
enum Mode { | |
Position, | |
Immediate, | |
} | |
impl Mode { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::time::Instant; | |
#[derive(Debug, PartialEq, PartialOrd, Clone)] | |
struct Num([u8; 6]); | |
impl Num { | |
fn from_i32(input: i32) -> Self { | |
let d0 = ((input / 100_000) % 10) as u8; | |
let d1 = ((input / 10_000) % 10) as u8; | |
let d2 = ((input / 1_000) % 10) as u8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = XXXX XXXX | |
email = xxxx@xxxx.com | |
[core] | |
excludesfile = /Users/monk/.gitignore_global | |
[alias] | |
st = status -s | |
ci = commit | |
br = branch | |
co = checkout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Backbone.origSync = Backbone.origSync | |
Backbone.sync = (method, model, options) -> | |
url = _.result(model, 'url') | |
url = 'http://my-server.com/' + url | |
options.url = url | |
Backbone.origSync.call @, method, model, options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.avi -filter:v scale=640:-1 -sws_flags lanczos -vcodec libx264 -b 800k out.avi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
passenger_root /home/web/.rvm/gems/ruby-1.8.7-p371@maxinfo/gems/passenger-4.0.5; | |
passenger_ruby /home/web/.rvm/wrappers/ruby-1.8.7-p371@maxinfo/ruby; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build settings from command line: | |
ARCHS = i386 | |
CONFIGURATION_BUILD_DIR = /Users/monk/Projects/flee.io/ios-client/cordova/../build | |
SDKROOT = iphonesimulator6.1 | |
VALID_ARCHS = i386 | |
=== CLEAN NATIVE TARGET Flee OF PROJECT Flee WITH CONFIGURATION Debug === | |
Check dependencies | |
Clean.Remove clean cordova/../build/Flee.app.dSYM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/.ssh | |
chmod 700 ~/.ssh | |
touch ~/.ssh/authorized_keys | |
chmod 600 ~/.ssh/authorized_keys | |
echo ssh-dss AAAAB3NzaC1kc3MAAACBAIrGtuwyApXEnEQP1xil3JU2Jt+sDHT2j0KdX6K38OIQydWnyOuJdLndIoQmG7vT6o6cgL9PAPui+PtmV2tTduVvPmNxFkj/vWlxLkTprnFOLJKaWG6dD+UVFyAf7TNP1G4dQ+rqt1E5xXx9fGNTwHF3HSeWTWt5spP2NGSIrXBPAAAAFQCn0Dra0A+VTXTkKT2ONXIxRfZ0YQAAAIA3Yo6HzzkzTHWoRU6EWYNbIYcXA+t1B2RX+EJAOD6R9W5WqRITvQc4E6CVYlnd3CGV4cpEMZrWDFRUbvJdk60hUo8D81nzAb+r4jh2rz9N0tC0z9yeoreAnljjIYfy4PrJnhvDlgiZLVRXNu27CR1kja6u+OWphF7Oc1iXyrk2lQAAAIA+r6M9IaRt75JLTCTabn2el8SibJo1ZpbCKgrni6xEMoGYZaDZvOelko8YJFgVT07Kw3qY1uGvROjE7SAgTZb5inrGwfnY98ZENhbu0+ZRJ/UgbtL9Ge47UqTaDty4LIpdy2522zaUFPEtSWxwo8aUqfLLZZ9CpJ5HdnD3TPVWrA== > ~/.ssh/authorized_keys | |
echo ALL DONE! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/.ssh | |
chmod 700 ~/.ssh | |
touch ~/.ssh/authorized_keys | |
chmod 600 ~/.ssh/authorized_keys | |
echo ssh-dss AAAAB3NzaC1kc3MAAACBAIrGtuwyApXEnEQP1xil3JU2Jt+sDHT2j0KdX6K38OIQydWnyOuJdLndIoQmG7vT6o6cgL9PAPui+PtmV2tTduVvPmNxFkj/vWlxLkTprnFOLJKaWG6dD+UVFyAf7TNP1G4dQ+rqt1E5xXx9fGNTwHF3HSeWTWt5spP2NGSIrXBPAAAAFQCn0Dra0A+VTXTkKT2ONXIxRfZ0YQAAAIA3Yo6HzzkzTHWoRU6EWYNbIYcXA+t1B2RX+EJAOD6R9W5WqRITvQc4E6CVYlnd3CGV4cpEMZrWDFRUbvJdk60hUo8D81nzAb+r4jh2rz9N0tC0z9yeoreAnljjIYfy4PrJnhvDlgiZLVRXNu27CR1kja6u+OWphF7Oc1iXyrk2lQAAAIA+r6M9IaRt75JLTCTabn2el8SibJo1ZpbCKgrni6xEMoGYZaDZvOelko8YJFgVT07Kw3qY1uGvROjE7SAgTZb5inrGwfnY98ZENhbu0+ZRJ/UgbtL9Ge47UqTaDty4LIpdy2522zaUFPEtSWxwo8aUqfLLZZ9CpJ5HdnD3TPVWrA== >> ~/.ssh/authorized_keys | |
echo ALL DONE! |
NewerOlder