With Audio and Screen Sharing Enabled
Add the i386
architecture to the list of dpkg
architectures :
sudo dpkg --add-architecture i386
#!/bin/bash | |
cd | |
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2 && \ | |
tar xvjf sklgucver61.tar.bz2 && cd skl_guc_ver6_1/ && sudo ./install.sh | |
cd | |
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/kbldmcver101.tar.bz2 && \ |
# First the end result of what we want: | |
class Foo | |
before_hook :whoa | |
before_hook :amazing | |
def test | |
puts "This is kinda cool!" | |
end |
Copyright (c) 2012 James Conroy-Finn | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE US |
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |
#!/usr/bin/env ruby | |
numbers = [2, 6, 4, 8, 8, 9] | |
sum = ARGV.empty? ? 10 : ARGV.first.to_i | |
def sum_exists(numbers, sum) | |
Array(numbers).combination(2).find_all { |x, y| x + y == sum } || [] | |
end | |
result = sum_exists(numbers, sum) |
var page = new WebPage(); | |
page.open('http://espn.go.com/nfl/', function (status) { | |
//once page loaded, include jQuery from cdn | |
page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() { | |
//once jQuery loaded, run some code | |
//inserts our custom text into the page | |
page.evaluate(function(){$("h2").html('Many NFL Players Scared that Chad Moon Will Enter League');}); | |
//take screenshot and exit | |
page.render('espn.png'); |
//create new webpage object | |
var page = new WebPage(); | |
//load the page | |
page.open('http://espn.go.com/nfl', function (status) { | |
//fire callback to take screenshot after load complete | |
page.render('espn.png'); | |
//finish | |
phantom.exit(); | |
}); |
cd ~/ | |
git clone git://github.com/ariya/phantomjs.git && cd phantomjs | |
qmake-qt4 && make | |
sudo cp bin/phantomjs /usr/local/bin/ |
sudo apt-get install flashplugin-nonfree msttcorefonts |