CSS and SVG recreation of the new Google material design loading spinner.
Forked from Fran Pérez's Pen Material Design Spinner.
A Pen by Casper Pascal on CodePen.
__author__ = 'cazamagni' | |
import time | |
from threading import BoundedSemaphore, Lock, Thread | |
class Worker(Thread): | |
def __init__(self, function, semaphore): | |
Thread.__init__(self) | |
self.func = function |
CSS and SVG recreation of the new Google material design loading spinner.
Forked from Fran Pérez's Pen Material Design Spinner.
A Pen by Casper Pascal on CodePen.
/* | |
ServQuick | |
Colour 1: #485563 | |
Colour 2: #29323c | |
*/ | |
background: -webkit-linear-gradient(90deg, #485563 10%, #29323c 90%); /* Chrome 10+, Saf5.1+ */ | |
background: -moz-linear-gradient(90deg, #485563 10%, #29323c 90%); /* FF3.6+ */ | |
background: -ms-linear-gradient(90deg, #485563 10%, #29323c 90%); /* IE10 */ | |
background: -o-linear-gradient(90deg, #485563 10%, #29323c 90%); /* Opera 11.10+ */ |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2014 | |
Copyright (C) 2014 Addy Osmani @addyosmani | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
Update and install required packages:
$ apt-get update -y
$ apt-get install -y g++ gcc make libc6-dev patch openssl ca-certificates libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
Install ruby-build
$ git clone git://github.com/sstephenson/ruby-build.git /tmp/ruby-build
$ cd /tmp/ruby-build/
$ ./install.sh
// ----- C ------- | |
/** | |
* arduino Nikon IR remote | |
* @license Creative commons: Attribution-Noncommercial-Share Alike 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/) | |
* @author Aurelien ANTOINE | |
* version 1 | |
* date 20081217 | |
* | |
* | |
* This version modified by Steve Hoefer September 12, 2011 |
type ( | |
// BuoyCondition contains information for an individual station. | |
BuoyCondition struct { | |
WindSpeed float64 `bson:"wind_speed_milehour"` | |
WindDirection int `bson:"wind_direction_degnorth"` | |
WindGust float64 `bson:"gust_wind_speed_milehour"` | |
} | |
// BuoyLocation contains the buoy's location. | |
BuoyLocation struct { |
Copyright (c) 2013, Evgeny Zislis | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, | |
are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright notice, | |
this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright notice, |
Using MongoDB in golang with mgo |
import os | |
__author__ = 'carlozamagni' | |
BASE_PATH = os.getcwd() | |
def merge_files(path, package_name): | |
files = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path,f))] |