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
Url input = new Url("http://what.cd/forums.php?action=viewforum&forumid=7"); | |
Document doc = Jsoup.parse(input,500);//500 is the timeout | |
Elements rowsa = content.getElementsByClass("rowa"); | |
Elements rowsb = content.getElementsByClass("rowb"); | |
Elements totalRows = rowsa+rowsb //don't know what to do here, but concatinate them if possible | |
for (Element row : totalRows) { | |
for(Element data : row.children()){ |
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
Module Module1 | |
Private Delegate Sub Numbering() | |
Sub Main() | |
Dim Fns As Numbering | |
'Fns = New Numbering(AddressOf FnOdd) | |
'Fns() | |
'Fns = New Numbering(AddressOf FnEven) | |
'Fns() | |
'Fns = New Numbering(AddressOf FnFours) | |
'Fns() |
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
public class EntryPoint { | |
public static class Point{ | |
public final double x; | |
public final double y; | |
public Point(double x,double y){ | |
this.x = x; | |
this.y = y; | |
} |
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
# !/bin/bash | |
wget -r -m -l 1 "http://$1" |
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 java.awt.EventQueue; | |
public class GridBased extends JFrame { | |
private static final long serialVersionUID = -680006681909001923L; | |
private JPanel contentPane; | |
private JButton[][] grid = new JButton[6][5]; |
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
public class SplitInput { | |
public static void main(String... args){ | |
// This is your input string. It can be read from the console or | |
// via other methods of io, but I just have it the code for the hell of it | |
String input = "20,40,30,54,17"; | |
// Now we split the string into an array of strings with the "split" method. | |
// It creates an array of strings that were seperated by the comma. | |
String[] afterSplit = input.split(","); |
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
public class Test { | |
private static class Foo{ | |
} | |
private static class Bar{ | |
} | |
public static void main(String... args){ | |
Foo[] fooArray = new Foo[10]; | |
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
# !/bin/bash | |
wget -r -m -l 1 "http://$1" |
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
BEGIN FORMULA BARS | |
0#|#3d#|#512,256#|#*,*#|#(sqr(x-256)+sqr(y-128))/100#|#c#|##|# | |
1#|#KOALA#|##|#*,*#|#@C:\Users\Public\Pictures\Sample Pictures\Koala.jpg#|#c#|##|# | |
2#|#noise#|#256,256#|#1,*#|#RGB(Red1(x,y) mod 2 * 256,Green1(x,y) mod 2 * 256,Blue1(x,y) mod 2 * 256)#|#c#|##|# | |
2#|#noise#|##|#2,*#|#(Red1(x,y)+Green1(x,y)+Blue1(x,y))/3#|#c#|##|# | |
3#|#final#|#512,256#|#0,2#|#if x<250*(1/(1+800/(100+source1(x,y)))) then source2(x,y mod h2) else dest(x-250*(1/(1+800/(100+source1(x,y)))),y)#|#c#|##|# |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use LWP; | |
# $prerequisites->{course}->{requirement} | |
my $prerequisites = {}; | |
my $ua = LWP::UserAgent->new(); |
OlderNewer