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
(define (primHelp num count) | |
(cond | |
((zero? (modulo num count)) #f) | |
((< count (sqrt num)) (primHelp num (+ count 1))) | |
(else #t) | |
) | |
) |
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
/** | |
* Read complete file into a String | |
*/ | |
try(InputStream is = ...) { | |
try(Scanner s = new Scanner(is).useDelimiter("\\A")) { | |
return s.hasNext() ? s.next() : ""; | |
} | |
} |
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
:gsub("&#%d%d%d%d;", decode) | |
function decode(str) | |
local num = tonumber(str:sub(3,6)) | |
local first = math.floor(num/4096) | |
num = num - 4096 * first | |
return string.char(first+224, math.floor(num/64)+128, num%64+128) | |
end |
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
package net.mabako.zwickau.db; | |
import static net.mabako.zwickau.autohaendler.G.db; | |
import java.util.Vector; | |
public class UserTable extends TableHandler | |
{ | |
/** | |
* {@inheritDoc} |
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
package net.mabako.zwickau.autohaendler; | |
import javax.swing.JButton; | |
public class Dashboard extends JPanel | |
{ | |
/** | |
* Serial | |
*/ | |
private static final long serialVersionUID = -2754350246072768836L; |
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
// beliebige Komponente | |
final Component component = ...; | |
PrinterJob job = PrinterJob.getPrinterJob(); | |
job.setPrintable(new Printable() | |
{ | |
@Override | |
public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException | |
{ |
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
local function isYearALeapYear(year) | |
if not year then | |
year = getRealTime().year + 1900 | |
end | |
if (year % 4 == 0 and year % 100 ~= 0) or year % 400 == 0 then | |
return true | |
else | |
return false | |
end | |
end |
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
mabako: 553814 (44.65%) lines, 3549 (54.38%) files | |
Mount: 363479 (29.31%) lines, 1172 (17.96%) files | |
Fenix: 240925 (19.43%) lines, 1463 (22.42%) files | |
Chamberlain: 51597 (4.16%) lines, 298 (4.57%) files | |
herbjr: 13238 (1.07%) lines, 18 (0.28%) files | |
Cazomino05: 5826 (0.47%) lines, 0 (0%) files | |
Flobu: 4733 (0.38%) lines, 10 (0.15%) files | |
VGMTAServer: 1751 (0.14%) lines, 1 (0.02%) files | |
Mr.Hankey: 1709 (0.14%) lines, 0 (0%) files | |
Jumba: 1187 (0.1%) lines, 3 (0.05%) files |
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
private UILabel CreateLabel(string type, Vector2 location, string text) | |
{ | |
var lblObject = new GameObject("NameOfTheMod/" + type, typeof(UILabel)); | |
lblObject.transform.parent = panel.transform; | |
var label = lblObject.GetComponent<UILabel>(); | |
label.absolutePosition = location; | |
label.textAlignment = UIHorizontalAlignment.Center; | |
label.verticalAlignment = UIVerticalAlignment.Middle; |
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
func main() { | |
var url string = "http://www.fh-zwickau.de" | |
cs := make(chan Wortspeicher, 1337) | |
done := make(chan bool) | |
go KompletteWortanalyse(cs, done) | |
// Es sollte die gesamte Textanalyse für alle Seiten geschehen, bevor (cs) geschlossen wird, d.h. wie auch immer das umgesetzt wird. | |
go AnalyzeText(url, cs) // ... usw. für mehrere Textdateien | |