sudo apt-get -y install openjdk-7-jdk
sudo mkdir /usr/java
sudo ln -s /usr/lib/jvm/java-7-openjdk-amd64 /usr/java/default
This file contains 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
-- | |
-- vardump | |
-- original verstion by Tobias Sulzenbruck and Christoph Beckmann | |
-- source: Lua Gems, page 29 | |
-- modifications: Krishna Kotecha | |
-- | |
--[[ | |
value - the value to dump |
This file contains 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
# app/models/ability.rb | |
# All front end users are authorized using this class | |
class Ability | |
include CanCan::Ability | |
def initialize(user) | |
user ||= AdminUser.new | |
case user.role | |
when "admin" |
This file contains 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
(ns collatz.core) | |
(defn collatz | |
"Given n, it returns n/2 if it's even or n*3+1 if it's odd." | |
[n] | |
(if (even? n) | |
(/ n 2) | |
(+ (* 3 n) 1))) | |
(declare count-steps-of-collatz) |
This file contains 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
<!doctype html> | |
<html ng-app="myApp"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-controller="TodoCtrl"> | |
<button ng-click="beQuickOrBeDead()">Fetch with 100ms timeout</button> | |
<button ng-click="neverEndingStory()">Fetch with default timeout</button> |
##introduction
This benchmark evaluates the different presets options offered by x264, using medium
as reference, and providing size and time
differences (relative and not).
##benchmark
Tests run with latest x264 (12139) and FFmpeg, configured to run with threading enabled. The slower
and veryslow
presets have
been modified to keep the number of refs constant and compatible with most decoders. All results represent an average over 10 runs
computed by perf
.
This file contains 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 time | |
import socket | |
def collect_metric(name, value, timestamp): | |
sock = socket.socket() | |
sock.connect( ("localhost", 2003) ) | |
sock.send("%s %d %d\n" % (name, value, timestamp)) | |
sock.close() | |
def now(): | |
return int(time.time()) |
This file contains 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
https://www.gtplanet.net/how-gran-turismo-is-made/ | |
https://www.fia.com/news/auto-changing-game | |
https://www.youtube.com/watch?v=I8GQCZgCNw8 | |
https://www.gtplanet.net/dr-kazunori-yamauchi-gives-lecture-gran-turismos-driving-physics-production/ | |
https://www.gtplanet.net/polyphony-digital-reveals-gt-sports-iris-ray-tracing-system-at-cedec-2018 | |
https://www.youtube.com/watch?v=VxL9j-j7JaI | |
https://www.youtube.com/watch?v=FPX2qRQAnBo | |
https://www.youtube.com/watch?v=QESGXTFFZXM | |
https://www.youtube.com/watch?v=-FrybeCxDPU | |
https://www.youtube.com/watch?v=ygUqvfeAaa0 |
This file contains 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/python | |
''' | |
SCTE-35 Decoder | |
The MIT License (MIT) | |
Copyright (c) 2014 Al McCormack |
OlderNewer