This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ; | |
import luxe.Component; | |
import luxe.Rectangle; | |
import luxe.Vector; | |
class PhysBody { | |
public var rect:Rectangle; | |
public var vel:Vector; | |
public var acc:Vector; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import luxe.Component; | |
import luxe.Input; | |
import luxe.Parcel; | |
import luxe.ParcelProgress; | |
import luxe.Rectangle; | |
import luxe.Sprite; | |
import luxe.Color; | |
import luxe.tween.easing.*; | |
import luxe.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Copyright: (c) SAEKI Yoshiyasu | |
License : MIT-style license | |
<http://www.opensource.org/licenses/mit-license.php> | |
last updated: 2010/12/03 | |
**/ | |
#include <SPI.h> | |
#include <Ethernet.h> | |
#include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Primer: | |
# bash kako_ime_zvuči_uz_prezime Kovačević | |
# ...Momčilo, Momčilo Kovačević | |
# ...Višeslav, Višeslav Kovačević | |
PREZIME=$1 | |
for IME in $(cat muška.imena.txt); do | |
espeak -m -v sr "<prosody rate='0.7'>$IME</prosody><break time='1000' /><prosody rate='1'>$IME $PREZIME</prosody><break time='1000' />" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SpatialHash uniform-grid implementation | |
// Broad-phase algorithm for collision detection | |
// Andrei Rudenko // SpatialHash.hx (24.07.2016) | |
import luxe.Vector; | |
import luxe.utils.Maths; | |
class SpatialHash { | |
public var min(default, null):Vector; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install gcc | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb | |
sudo apt-get update | |
sudo apt-get install cuda | |
export PATH=/usr/local/cuda-5.5/bin:$PATH | |
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH | |
sudo apt-get install opencl-headers python-pip python-dev python-numpy python-mako |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
########################################################################### | |
# Originally written by: Henrik Bengtsson, 2014 | |
# https://github.com/HenrikBengtsson/speedtest-cli-extras | |
# Modified to use IFTTT by: Alasdair Allan, 2015 | |
# License: GPL (>= 2.1) [http://www.gnu.org/licenses/gpl.html] | |
########################################################################### | |
# Character for separating values | |
# (commas are not safe, because some servers return speeds with commas) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* CI / MySQL Closure Table Model | |
* | |
* @link http://www.slideshare.net/billkarwin/models-for-hierarchical-data | |
* @TODO improve | |
* | |
* sql schema: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////// | |
// Animation Cubic Bezier easings // | |
// see - http://matthewlein.com/ceaser // | |
/////////////////////////////////////////// | |
// defaults | |
$ease-linear: "cubic-bezier(0.250, 0.250, 0.750, 0.750)"; | |
$ease-default: "cubic-bezier(0.250, 0.100, 0.250, 1.000)"; | |
$ease-in: "cubic-bezier(0.420, 0.000, 1.000, 1.000)"; | |
$ease-out: "cubic-bezier(0.000, 0.000, 0.580, 1.000)"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onOpen() { | |
var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}]; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
ss.addMenu("Fitness Diaries", menuEntries); | |
} | |
function createDocFromSheet(){ | |
var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id | |
var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries | |
// get the data from an individual user |
OlderNewer