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
# Data taken from | |
# https://dataplatform.nl/#/data/2346f748-e7e7-4e6d-b630-1009a3c0e9d8 | |
# https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2022 | |
# https://www.cbs.nl/nl-nl/maatwerk/2021/31/kerncijfers-wijken-en-buurten-2021 | |
# Packages installation | |
install.packages("rgeoda") | |
install.packages("sf") | |
install.packages("ggplot2") | |
install.packages("dplyr") |
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/osascript | |
-- Make sure to update the `pdfPath` variable! | |
local pdfPath | |
set pdfPath to "Projects:conf-2020-scalaua:Prototyping-The-Future-ScalaUA-2020.pdf" | |
local destPath | |
set destPath to ((path to home folder) as text) & pdfPath |
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
let mileage = 0 | |
const defaultLinkPitch = 10 // milimeters | |
let cogHealth = 100 // % | |
const chainCycle = () => { | |
mileage += 0.000001 | |
const linkPitch = mileage * 2.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
package hello | |
import io.circe.generic.auto._ | |
import io.github.mkotsur.aws.handler.Lambda._ | |
import io.github.mkotsur.aws.handler.Lambda | |
import com.amazonaws.services.lambda.runtime.Context | |
import io.github.mkotsur.aws.proxy | |
import io.github.mkotsur.aws.proxy.ProxyResponse | |
import ScalaHandler._ |
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 hello | |
import scala.beans.BeanProperty | |
case class ApiGatewayResponse(@BeanProperty statusCode: Integer, @BeanProperty body: String, | |
@BeanProperty headers: java.util.Map[String, Object], @BeanProperty base64Encoded: Boolean = false) |
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.io.*; | |
public class MergesortFiles { | |
public static void main(String[] bla) throws Exception { | |
final int MAX_READ_STEP = 15; | |
final File f1 = new File("/tmp/test.txt"); | |
final File f2 = new File("/tmp/test2.txt"); |
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
class test { | |
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] } | |
exec { 'uuu': | |
command => 'sudo useradd -p \'$6$ho0rkgYB$tWX9tiduG4orUmc6Z6hfaha5C4v5xCzK.Xa1d2mSBRW5TwzkgeWap2tUuiEdUQBfo3KnvQi/Y1XjesFFZrMBj1\' myuser' | |
} | |
} |
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.MouseInfo; | |
import java.awt.Point; | |
public class Coords { | |
public static void main(String args[]) throws Exception { | |
while (true) { | |
Point spot = MouseInfo.getPointerInfo().getLocation(); | |
System.out.println(String.valueOf(spot.getX()) + "," + String.valueOf(spot.getY())); | |
Thread.sleep(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
r=1; while test "$r" != "0"; do mysql -h 33.33.33.100 -uroot -proot123 dbase; r=$?; sleep 1; done; |
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
ip212-238-53-50:~ mkotsur$ brew doctor | |
fatal: '/usr/local/Library/Homebrew' is outside repository | |
Your system is raring to brew. | |
ip212-238-53-50:~ mkotsur$ brew install glib | |
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2 | |
File already downloaded in /Users/mkotsur/Library/Caches/Homebrew | |
==> Downloading patches | |
######################################################################## 100.0% | |
######################################################################## 100.0% | |
######################################################################## 100.0% |
NewerOlder