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
file { '/etc/apt/sources.list.d/webupd8team.list': | |
content => "deb http://ppa.launchpad.net/webupd8team/java/ubuntu lucid main\ndeb-src http://ppa.launchpad.net/webupd8team/java/ubuntu lucid main\n", | |
} -> | |
exec { 'add-webupd8-key': | |
command => 'apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886', | |
path => ['/usr/bin/', '/bin'], | |
} -> | |
exec { 'apt-key-update': |
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
var homePage = function() { | |
this.getPageTitle = function() { | |
return element(by.tagName('h1')).getText(); | |
}; | |
this.searchArtist = function(artist) { | |
var searchfield = element(by.css("#search-field")); | |
searchfield.sendKeys(artist); | |
}; |
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
homePage = require('./Pages/homepage.js'); | |
describe('Angularjs Search feature',function() { | |
describe('Search page', function() { | |
beforeEach(function(){ | |
browser.get('http://localhost:8000/'); | |
}); |
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 com.hp.hpl.jena.query.*; | |
import com.hp.hpl.jena.rdf.model.Model; | |
import com.hp.hpl.jena.rdf.model.ModelFactory; | |
import com.hp.hpl.jena.rdf.model.Property; | |
import com.hp.hpl.jena.rdf.model.Resource; | |
import com.hp.hpl.jena.vocabulary.VCARD; | |
import static com.hp.hpl.jena.query.QueryExecutionFactory.*; | |
public class Main { |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) {}; | |
var R = Robot.prototype; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(10); | |
robot.turn(45); |
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
/** | |
* http://blog.pengoworks.com/index.cfm/2008/2/8/The-nightmares-of-getting-images-from-the-Mac-OS-X-clipboard-using-Java | |
*/ | |
public static BufferedImage getBufferedImage(Image img){ | |
if( img == null ) return null; | |
int w = img.getWidth(null); | |
int h = img.getHeight(null); | |
// draw original image to thumbnail image object and | |
// scale it to the new size on-the-fly | |
BufferedImage bufimg = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); |
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
<html> | |
<head> | |
<title>Desenhando com jQuery</title> | |
<style> | |
.coord { | |
opacity: 0.5; | |
-webkit-transition: opacity .1s linear; | |
-moz-transition: opacity .1s linear; |
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
<div id="wrap"> | |
<div id="blocks"> | |
<section id="news" class="box"> | |
<header><h1 class="script">Latest News</h1></header> | |
<article class="news-post"> | |
<header> | |
<h1><a href="#">Border & Radius Named to City's Best List</a></h1> | |
</header> | |
<p><time datetime="2011-01-26" pubdate>Monday, January 26, 2011</time> | <span class="via">via</span> <a href="#">The Newspaper</a></p> | |
</article> |