Skip to content

Instantly share code, notes, and snippets.

@piatra
piatra / index.html
Created February 26, 2014 22:27
getUserMedia in Firefox OS 1.4
<!DOCTYPE html>
<html>
<head>
<title>getUserMedia - Demo</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>getUserMedia - Demo</h1>
<video autoplay></video>
<button id="capture">Capture</button>
@piatra
piatra / plugins
Last active August 29, 2015 14:04
vim setup
YouCompleteMe
Zenburn
ctrlp.vim
detectindent
easybuffer.vim
nerdcommenter
nerdtree
python-mode
rust.vim
syntastic
@piatra
piatra / script.js
Created August 24, 2014 20:19
[Backbone router] Child route to trigger parent route action as well
(function() {
"use strict";
var MyRouter = Backbone.Router.extend({
routes: {
"/" : "home",
"user/:username" : "profilePage",
"user/:username/following": "following",
"user/:username/followers": "followers"
},
@piatra
piatra / Dockerfile
Created May 2, 2015 10:55
licenta dockerfile
FROM lukasz/docker-scala
MAINTAINER Andrei Oprea <andrei.br92@gmail.com>
# SSH keys nonsense
RUN echo "IdentityFile ~/.ssh/id_rsa" >> /etc/ssh/ssh_config
RUN mkdir /root/.ssh
RUN ssh-keyscan -t rsa github.com 2>&1 >> /root/.ssh/known_hosts
# Fetch streamer
RUN git clone https://github.com/piatra/streamer
@piatra
piatra / main.java
Created May 24, 2015 17:30
lab practic 2
/*
VICTOR ANDREI OPREA 341 C1
*/
package practicaltest02.pdsd.systems.cs.pub.ro.practicaltest02;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
var AppControllerView = React.createClass({
mixins: [
Backbone.Events,
loop.store.StoreMixin("conversationAppStore"),
sharedMixins.WindowCloseMixin
],
propTypes: {
dispatcher: React.PropTypes.instanceOf(loop.Dispatcher).isRequired,
mozLoop: React.PropTypes.object.isRequired,
class D {
int method(D x) {
return -1;
}
int method() {
return 0;
}
}
class E extends D {
@piatra
piatra / dabblet.css
Created January 13, 2012 08:47
Speech bubble
/*
Speech bubble
*/
body {
padding: 100px;
}
#speech_bubble {
background:#34c8f5;
@piatra
piatra / dabblet.css
Created February 1, 2012 15:24
smart use of css selectors
/**
* smart use of css selectors
*/
body {
background: #f06;
padding:100px;
}
.selector {
@piatra
piatra / dabblet.css
Created February 4, 2012 21:29
Comments structure
/**
* Comments structure
*/
body {
background:#f5f5f5;
}
#comments {
}