Skip to content

Instantly share code, notes, and snippets.

View solarkraft's full-sized avatar
🌟
Have a star!

Paul solarkraft

🌟
Have a star!
View GitHub Profile
// gif by dave whyte >:)
int[][] result;
float t;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
anonymous
anonymous / gist:ca0e6a2ae70b38d2bba4
Created August 4, 2014 11:11
'pulse'
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
void draw() {
anonymous
anonymous / gist:bb1e911cc54f0f695821
Created September 21, 2014 22:20
// by dave @ bees & bombs >:)
int[][] result;
float t;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
@thusoy
thusoy / index.html
Created February 3, 2015 14:50
Simple site to get lat/lon coordinates of a point from OSM with OpenCycleMap tiles.
<!doctype html>
<html>
<head>
<title>Hike map</title>
<style>
html, body, #map {
height: 100%;
}
</style>
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
@jmingov
jmingov / golang_on_rpi.md
Last active March 22, 2019 02:45 — forked from konradko/golang_on_rpi.md
Install Golang 1.8.1 on Raspberry Pi
wget https://storage.googleapis.com/golang/go1.8.1.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.8.1.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
wget https://nodejs.org/dist/v7.10.0/node-v7.10.0-linux-armv7l.tar.xz 
tar -xvf node-v7.10.0-linux-armv7l.tar.xz
cd node-v7.10.0-linux-armv7l
@jalcaldea
jalcaldea / telegram-installer.sh
Last active April 5, 2020 15:06
Small script that simplifies Telegram installation in ubuntu.
#!/bin/bash
echo "============================================="
echo "== Telegram Script Installer v 0.1 =="
echo "== =="
echo "== by Jalcaldea =="
echo "============================================="
echo "Downloading necesary files..."
anonymous
anonymous / gist:da235a8ff7bc821a27cc
Created April 24, 2015 19:09
circles
// copyrite dw
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
@forensicgarlic
forensicgarlic / euler2.vhd
Created February 2, 2016 02:55
vhdl euler2 behavioural
architecture behavioral of euler2 is
signal even : std_logic;
signal results_int : unsigned(31 downto 0);
signal results_valid_int : std_logic;
signal fib_r1 : unsigned(31 downto 0);
signal fib_r2 : unsigned (31 downto 0);
signal sum : unsigned (31 downto 0);
begin -- behavioral
@avidrucker
avidrucker / xdsd_summary.md
Created April 25, 2021 19:52
Summary eXtremely Distributed Software Development, at DevTernity

Yegor Bugayenko, Project Manager & Programmer https://youtu.be/7EytYc7K5JA 48 min watch time Extremely Distributed Software Development

Issues

  • Projects end in missed deadlines, over budget, don't fulfil requirements - but why?
    • Technical incompetence isn't the issue
  • Management is the issue
@ggirou
ggirou / center.dart
Created March 21, 2014 13:41
Center mass of SVG path elements
import 'dart:convert';
import 'dart:html';
import 'dart:math';
import 'dart:svg' as svg;
main() {
HttpRequest.getString('svg-datas.json').then(JSON.decode).then(calculateGravity);
}
calculateGravity(Map<String, Map> paths) {