Skip to content

Instantly share code, notes, and snippets.

@piatra
piatra / index.html
Last active December 15, 2015 07:29
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<img src="4.jpg" id="image1">
<div class='resize resize-right'></div>
<div class='resize resize-top'></div>
@piatra
piatra / error.log
Created November 7, 2012 13:15
nodejitsu deploy error
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: Rackspace Error (404): Item not found
error: Error output from Haibu:
error:
error: Error: Rackspace Error (404): Item not found
error: at Request._callback (/root/haibu-orchestra/node_modules/haibu/node_modules/cloudfiles/lib/cloudfiles/common.js:184:18)
error: at Request.init.self.callback (/root/haibu-orchestra/node_modules/haibu/node_modules/request/main.js:119:22)
@piatra
piatra / dabblet.css
Created November 1, 2012 21:23
Untitled
.ball {
background:lightgreen;
background:-webkit-linear-gradient(#222, lightgreen);
width:200px;
height:200px;
border-radius:50%;
position:absolute;
left:0;
}
@piatra
piatra / dabblet.css
Created September 3, 2012 18:48
Untitled
body {
padding:100px;
}
input:checked ~ p.first {
display:none;
}
input:not(:checked) ~ p.second {
display:none;
@piatra
piatra / dabblet.css
Created August 12, 2012 19:27
Untitled
body {
padding:100px;
}
input:checked ~ p.first {
display:none;
}
input:not(:checked) ~ p.second {
display:none;
@piatra
piatra / dabblet.css
Created July 31, 2012 11:03
CSS Box model demo
/**
* CSS Box model demo
*/
#box {
width: 400px;
height: 360px;
border-width: 20px;
/box-sizing: border-box;
}
@piatra
piatra / index.html
Created July 27, 2012 19:52
music player in the browser
<!doctype html public "✰">
<html>
<head>
<title>music player</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:600' rel='stylesheet' type='text/css'>
<style>
body {
font-family:'Open Sans';
font-weight: 600;
-webkit-animation:bg 30s;
@piatra
piatra / gist:3186566
Created July 27, 2012 06:57 — forked from rmurphey/gist:3185390
shiftOut in javascript
var five = require("johnny-five"),
board;
board = new five.Board();
board.on("ready", function() {
(new five.Led(13)).on();
var dataPin = 2;
var clockPin = 3;
@piatra
piatra / gist:3097101
Created July 12, 2012 09:55
nodejistu error
info: Creating snapshot 0.1.0-2
info: Updating app kreator-server
info: Activating snapshot 0.1.0-2 for kreator-server
info: Starting app kreator-server
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: Error spawning drone: no matching engine found
error: Repository configuration
@piatra
piatra / app.js
Created June 27, 2012 12:14
xhr2 + nodejs + filereader = resumable uploads
var http = require('http')
, formidable = require('formidable')
, fs = require('fs')
, qs = require('querystring')
, util = require('util')
, uploads = {};
http.createServer(function(req, res){
if(req.method == 'GET') {
if(req.url != '/favicon.ico') {