Rustpkg is a revamp of Cargo that brings awesome new features such as a build system described in build scripts.
It's a purely functional package manager that has no central sources of any kind,
but rather installs via URLs. It's similar to how Go's go get
tool works, except
Rustpkg requires a central metadata file (pkg.rs
) in the repository, archive or folder
in order to figure out how to build the package. This is a side effect of Rustpkg
allowing multiple crates to be defined in a single package (i.e. a package is defined
as a set of crates rather than a package being exactly the same as one crate).
There's a plan to make it so the pkg.rs
is not needed for single-crate packages,
static const char* YUYV_VS = "" | |
"#version 150\n" | |
"uniform mat4 u_pm;" | |
"uniform mat4 u_mm;" | |
"in vec4 a_pos;" | |
"in vec2 a_tex;" | |
"out vec2 v_tex;" | |
"void main() {" | |
" gl_Position = u_pm * u_mm * a_pos; " |
angular.module('httpProgress') | |
.factory('httpProgressInterceptor', function($q) { | |
var requestCount = 0; | |
function updateProgress(update) { | |
var previous = requestCount; | |
requestCount += update; | |
if(previous <= 0 && requestCount > 0) { | |
NProgress.start(); |
// Include gulp | |
var gulp = require('gulp'); | |
// Include Our Plugins | |
var sass = require('gulp-sass'); | |
var lr = require('tiny-lr'), | |
refresh = require('gulp-livereload'), | |
server = lr(); |
Even though there is a nice XBMC add-on to configure your WIFI settings, sometimes, you may still want to setup the WIFI connection for many reasons or just for fur.
OpenELEC use connman for managing connection to the various available network.
Setuping connman to connect to your protected WIFI network is an easy requiring you only to create a config file and enter some commands in a shell.
SASSC = sass --style compact | |
COMPSDIR = resources/assets/components | |
SASSDIR = resources/assets/css | |
JSDIR = resources/assets/js | |
DISTDIR = web/dist | |
CSSDIR = $(DISTDIR)/css | |
SASSINC = $(SASSDIR) \ | |
$(COMPSDIR)/asimov/src/scss \ | |
$(COMPSDIR)/asimov-contests/src/scss \ | |
$(COMPSDIR)/asimovicons/src/scss |
CPU consumption during playback of a 720p H264 video on a 2013 Core i7 MacBook Air with Intel HD 5000 graphics card, running OS X Mavericks 10.9.2:
- MPlayerX 1.0.22.1 (vda): 8% ~ 9%
- VLC 2.1.4: 15% (vda)
- QuickTime Player 10.3: 5% (hwaccel)
- MPlayer OSX Extended rev 15 (mplayer SVN r36986): 30% (no hwaccel), 16% (-vc ffh264vda)
- mpv (git-b0b0e69): 20% ~ 23% (no hwaccel), 5% ~ 7% (--hwdec=vda)
- XBMC 13.0 beta 2: 14% (vda)
(All above programs are x86_64.)
source 'https://rubygems.org' | |
gem 'rake' | |
gem 'lotus-router' | |
gem 'lotus-controller' | |
gem 'lotus-view' | |
group :test do | |
gem 'rspec' | |
gem 'capybara' |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
As of 079ecd7 (2014-11-19), the hook script is now integrated into mpv and will be avaiblable when compiled with LUA support. It is (currently) disabled by default, to enable it add --ytdl=yes
to your command-line or ytdl=yes
to your mpv.conf.
- automatic selection of ASS subformat (rg3/youtube-dl#4019)
- youtube-dl may get stuck on direct URLs to less popular file types (m2ts) (rg3/youtube-dl#4149)