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
var url ='https://www.google.de/search?q=Yahoo+logo&source=lnms&tbm=isch&sa=X'; | |
var page = new WebPage() | |
var fs = require('fs'); | |
var vWidth = 1080; | |
var vHeight = 1920; | |
page.viewportSize = { | |
width: vWidth , | |
height: vHeight |
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
/* Requires JNA | |
* Get jna.jar here: http://java.net/projects/jna/sources/svn/show/trunk/jnalib/dist | |
*/ | |
import com.sun.jna.Library; | |
import com.sun.jna.Native; | |
public class SelfKiller | |
{ | |
private interface CLibrary extends Library | |
{ |
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 matplotlib,numpy | |
import pylab | |
# A random colormap for matplotlib | |
cmap = matplotlib.colors.ListedColormap ( numpy.random.rand ( 256,3)) | |
pylab.imshow ( Z, cmap = cmap) | |
pylab.show() |