Skip to content

Instantly share code, notes, and snippets.

View piotrkubisa's full-sized avatar
🐱
Set status

Piotr Kubisa piotrkubisa

🐱
Set status
View GitHub Profile
@mhaligowski
mhaligowski / pl.json
Last active April 2, 2019 07:39
Poland TopoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Iamronan
Iamronan / gulp
Last active August 29, 2015 13:56
Example gulp file
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var autoprefixer = require('gulp-autoprefixer');
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@benbjohnson
benbjohnson / store.go
Created June 13, 2014 12:04
Session Store Expiration
package store
import (
"fmt"
"github.com/boltdb/bolt"
)
// reap removes sessions older than a given duration.
// This function assumes that all session data is stored in a "sessions" bucket
@ebuildy
ebuildy / gist:5d4ad0998848eaefdad8
Last active November 7, 2018 19:14
Setup sentry logger on a fresh Ubuntu server
sudo apt-get update
sudo apt-get install python-virtualenv
sudo apt-get install python-dev
sudo apt-get install postgresql
sudo apt-get install postgresql-server-dev-9.3
sudo apt-get install redis-server
sudo -u postgres createuser -s sentry
sudo -u postgres psql -c "alter user sentry with password 'sentry';"
using Gtk;
namespace Chimera
{
public class ChimeraTab : Gtk.Bin
{
ScrolledWindow scroller;
TextView text_view;
construct {
@hamstu
hamstu / parallax.html
Last active July 31, 2021 15:12
Parallax Effect: HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Parallax Example</title>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="style.css">
</head>
<body>
@hamstu
hamstu / style.css
Created December 17, 2014 19:09
Parallax Example: CSS
body {
background: #415a6c;
margin: 0;
font-family: 'Oswald';
}
.parallax-container {
position: fixed;
overflow: visible;
width: 100%;
height: 850px;
@hamstu
hamstu / parallax.js
Last active February 7, 2024 15:20
Parallax Example: JavaScript
var ParallaxManager, ParallaxPart;
ParallaxPart = (function() {
function ParallaxPart(el) {
this.el = el;
this.speed = parseFloat(this.el.getAttribute('data-parallax-speed'));
this.maxScroll = parseInt(this.el.getAttribute('data-max-scroll'));
}
ParallaxPart.prototype.update = function(scrollY) {
@tishibas
tishibas / get_all_keys.py
Created January 12, 2015 09:00
Getting All keys in leveldb.
import leveldb
db = leveldb.LevelDB('./db')
db.Put('hello', 'value')
db.Put('world', 'value')
for k in db.RangeIter(include_value = False):
print 'K', k