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/python | |
# nettool.py - Python 3 reimplemntation of the netcat script in Black Hat Python | |
# Copyright (C) 2019 Stephen Gream | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
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
FormControl { | |
sx { | |
minWidth = 200.px | |
//this@FormControl.size = Size.small | |
} | |
Controller { | |
name = "fook" |
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
group = "org.example" | |
version = "1.0-SNAPSHOT" | |
plugins { | |
val kotlinVersion="1.6.20" | |
kotlin("js") version kotlinVersion | |
kotlin("plugin.serialization") version kotlinVersion | |
} |
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
<div class="scaleable-wrapper" id="scaleable-wrapper"> | |
<div class="very-specific-design" id="very-specific-design"> | |
<h1>I am designed just so.</h1> | |
<p>My design is intentional. I want to be scaled in such a way that scales the design. No reflows or anything, just straight up scaling. Kinda like SVG.</p> | |
www | |
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
<script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.1','packages':['bar','corechart', 'gauge', 'annotatedtimeline', 'annotationchart']}]}"></script> | |
<script> | |
google.setOnLoadCallback(drawChart); | |
var data = {"cols":[{"id":"","label":"Giorno","pattern":"","type":"date"},{"id":"","label":"CS Blindo 3 (kWh/Pz) ","pattern":"","type":"number"}],"rows":[{"c":[{"v":"Date(2019, 5, 3)","f":"03/06/19"},{"v":null}]},{"c":[{"v":"Date(2019, 5, 4)","f":"04/06/19"},{"v":1.15}]},{"c":[{"v":"Date(2019, 5, 5)","f":"05/06/19"},{"v":1.51}]},{"c":[{"v":"Date(2019, 5, 6)","f":"06/06/19"},{"v":0.97}]},{"c":[{"v":"Date(2019, 5, 7)","f":"07/06/19"},{"v":0.84}]},{"c":[{"v":"Date(2019, 5, 8)","f":"08/06/19"},{"v":0.9}]},{"c":[{"v":"Date(2019, 5, 9)","f":"09/06/19"},{"v":null}]}]} | |
var opt = { | |
"hAxis":{ |
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 aaa = "prova"; |
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
Long timea; | |
Long timeb; | |
ArrayList<Integer> list = new ArrayList<Integer>(); | |
IntStream.range(1,100000).forEach((x) -> { | |
list.add(x); | |
}); | |
timea = System.nanoTime(); | |
for(int x : list){ |
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
/* | |
With rx-java you can transform an iterable in to an observable. | |
Then you can replace continue with a filter and break with takeWhile | |
Here is an example: | |
*/ | |
import rx.Observable | |
Observable.from(1..100000000000000000) | |
.filter { it % 2 != 1} |