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
#!/usr/bin/env sh | |
# Check if exactly 2 arguments are given | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: $0 input_filename.ts output_filename.mp4" | |
exit 1 | |
fi | |
input_file="$1" | |
output_file="$2" |
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::env; | |
use std::fs; | |
use std::fs::File; | |
use std::io::BufReader; | |
use std::path::PathBuf; | |
use exif::{In, Reader, Tag}; | |
fn main() { | |
let args: Vec<String> = env::args().collect(); |
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 exif::{DateTime, Field, Reader}; | |
use regex::Regex; | |
use std::env; | |
use std::fs::File; | |
use std::io::{BufReader, Error}; | |
use std::path::PathBuf; | |
use walkdir::WalkDir; | |
fn main() -> Result<(), Error> { | |
let re = Regex::new(r"\.(jpg|jpeg|png|gif|mp4|mov)$").unwrap(); |
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
// | |
// © 2008 Eugene Solodovnykov | |
// http://idevblog.info/mobileprovision-files-structure-and-reading/ | |
// | |
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) { | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
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
/** | |
* You can edit, run, and share this code. | |
* play.kotlinlang.org | |
*/ | |
class Node(name: String) { | |
var position: FloatArray = floatArrayOf(0.0f, 0.0f, 0.0f) | |
var rotation: FloatArray = floatArrayOf(0.0f, 0.0f, 0.0f, 0.0f) | |
var name: String = name | |
var children: Array<Node> = emptyArray() |
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
//: [Previous](@previous) | |
/*: | |
# Mutation | |
To test class mutation in Swift. | |
The same behaviour as Kotlin, when the class has mutable properties. | |
*/ |
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
#import <Cocoa/Cocoa.h> | |
@interface NSColor (isLight) | |
- (BOOL)isLight; | |
@end |
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
{ | |
"isbn12345": { | |
"title": "Introdution to Algorithms", | |
"available": true, | |
"borrow_date": 1405062840, | |
"due_date": 1405102840, | |
"student334343": { | |
"name": "Sergey Brin", | |
"books": ["isbn12345", "isbn12346"] | |
} |
I hereby claim:
- I am jessearmand on github.
- I am jessearmand (https://keybase.io/jessearmand) on keybase.
- I have a public key ASD5t-v5WMuSFh19tH9pKmg2hcXYuEIMY0nOOhjh7OnWxgo
To claim this, I am signing this object:
NewerOlder