Skip to content

Instantly share code, notes, and snippets.

View eugenehp's full-sized avatar
🔬
DeepTech, FinTech, BioTech, Robotics, AI.

Eugene Hauptmann eugenehp

🔬
DeepTech, FinTech, BioTech, Robotics, AI.
View GitHub Profile

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@eugenehp
eugenehp / osx-setup.md
Last active August 29, 2015 14:02 — forked from suissa/osx-setup.md

Setup Mac OS X

...

1. Run Software Update

Make sure everything is up to date.

Software Update

HOW DO I REPRESENT THE FOLLOWING JEAP TEMPLATE IN AN ABSTRACT SYNTAX TREE?
#### jeap template
people =
{% for person in people %}
name = {{ person.name }}
{% end %}
#### end jeap template
- (IBAction)submitWasPressed:(id)sender {
NSLog(@"I would submit a note now");
NSDate *currentDay = [NSDate date];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"dd-MM-yyyy"];
NSString *dateString = [dateFormatter stringFromDate:currentDay];
NSLog(@"%@", dateString);
NSString *personId = [NSString stringWithFormat:@"%@", _selectedInteraction.person] ;
<?php
session_start();
add_filter( 'posts_orderby', 'randomise_with_pagination' );
function randomise_with_pagination( $orderby ) {
if( is_front_page() ) {
// Reset seed on load of initial archive page
import Cocoa
class CSVDoubleSequence: SequenceType {
typealias GeneratorType = IndexingGenerator<Array<Double>>
let path: String
let values: [Double]
init(path: String) {
self.path = path
"""
Multinomial Logistic Regression (MLR)
=====================================
Multiclass-classification with the MLR classifier
Authors: Adrien Gaidon & Jakob Verbeek
"""
@eugenehp
eugenehp / angularjs_directive_attribute_explanation.md
Last active August 27, 2015 05:56 — forked from CMCDragonkai/angularjs_directive_attribute_explanation.md
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@eugenehp
eugenehp / strongloop-heroku.md
Last active August 30, 2015 21:34 — forked from MarcDiethelm/strongloop-heroku.md
How to install a Node.js app using Strongloop on Heroku

How to install a Node.js app using Strongloop on Heroku

with different environments like staging and production no less! new: now with multiple account administration!

  1. Create a Node.js app as you would normally, managing your dependencies with npm in package.json.
  2. Your app should be set up to listen on process.env.STRONGLOOP_PORT || [your usual local port].
  3. Download and install the Heroku toolbelt. This install includes git.

➽ If you need to handle multiple accounts, install the accounts plugin.

@eugenehp
eugenehp / Instructions.md
Created September 29, 2015 01:58 — forked from jodyheavener/Instructions.md
Use Babel (ES6) with Sails JS

Inspired by this issue, with these instructions you should be able to get Babel transpiling your JS in Sails JS for the client side.

  1. Install Grunt Babel npm install --save grunt-babel
  2. Create a babel.js file under tasks/config and add something like the following:
module.exports = function(grunt) {

    grunt.config.set('babel', {
dev: {