Firstly remove rspec/autorun
from spec helper (It runs tests twice -_-)
gem install zeus
zeus start
Add these to vimrc
<?php | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); | |
$auth = filter_input( | |
INPUT_POST, | |
'auth', | |
FILTER_VALIDATE_REGEXP, | |
array('options' => array('regexp' => '@^authtest_\d+$@')) |
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
// Pass in an array of numbers ranging from 0 to 20. | |
function playSparkline(notes) { | |
if (!window.AudioContext && !window.webkitAudioContext) { | |
return; | |
} | |
var playing = null; |
<?php | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Headers: Authorization'); | |
if(isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/plain') !== false) { | |
$format = 'text'; | |
} else { | |
header('Content-Type: application/json'); | |
$format = 'json'; | |
} |
/* eslint no-var:0 */ | |
/* global AFRAME */ | |
'use strict'; | |
// Now out of date, use: | |
AFRAME.scenes[0].components.screenshot.capture() | |
// OLD METHOD BELOW: |
var touchstartX = 0; | |
var touchstartY = 0; | |
var touchendX = 0; | |
var touchendY = 0; | |
var gesuredZone = document.getElementById('gesuredZone'); | |
gesuredZone.addEventListener('touchstart', function(event) { | |
touchstartX = event.screenX; | |
touchstartY = event.screenY; |
### Cumulative Golf Major Winners | |
library(XML) | |
masters <- readHTMLTable("http://en.wikipedia.org/wiki/Masters_Tournament") | |
masters <- masters[[4]][,1:2] | |
usopen <- readHTMLTable("http://en.wikipedia.org/wiki/U.S._Open_(golf)") | |
usopen <- usopen[[2]][,1:2] |
# | |
# setwd("D:/R_the software/datatrials/Lahman") | |
# | |
require(Lahman) | |
require(dplyr) | |
# | |
# throwing by position | |
# version 1 - "merge" | |
MasterFielding <- data.frame(merge(Master, Fielding, by="playerID")) | |
MasterFielding <- merge(Master, Fielding, by="playerID") |
This Gist contains the script and generated output file for an Acer B276HUL.
The pre-generated file below is known to work with:
For El Capitan: