Skip to content

Instantly share code, notes, and snippets.

View maa123's full-sized avatar
:octocat:

maa123 maa123

:octocat:
View GitHub Profile
fn main() {
for x in 1..101 {
if x%15 == 0 {
println!("FizzBuzz");
} else if x%5 == 0 {
println!("Buzz");
} else if x%3 == 0 {
println!("Fizz");
} else {
println!("{}", x);
#!/bin/bash
wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
tar -C /usr/bin -xzf go1.12.6.linux-amd64.tar.gz
rm go1.12.6.linux-amd64.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.
+++++++++++++++++++++++++++++.
+++++++.
.
+++.
-------------------------------------------------------------------------------.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++.
++++++++++++++++++++++++.
+++.
------.
#!/bin/bash
sudo rm -rf /usr/local/go
wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.12.6.linux-amd64.tar.gz
rm go1.12.6.linux-amd64.tar.gz

Keybase proof

I hereby claim:

  • I am maa123 on github.
  • I am maa123 (https://keybase.io/maa123) on keybase.
  • I have a public key whose fingerprint is 94EC 0396 D58C E829 BCF7 2CD7 7E3F F4F6 3D19 E33D

To claim this, I am signing this object:



Keybase proof

I hereby claim:

  • I am maa123 on github.
  • I am maa123lq (https://keybase.io/maa123lq) on keybase.
  • I have a public key ASBYAyARLZDDIlNJ1GmfzRpQUYSokvU7WF26we9uugPnTgo

To claim this, I am signing this object:

@maa123
maa123 / ClassDMedKit.cs
Created June 12, 2018 11:58
mod sample
using Smod.TestPlugin;
using Smod2;
using Smod2.API;
using Smod2.Attributes;
using Smod2.Events;
using Smod2.EventHandlers;
namespace ReSpawnProtect{
[PluginDetails(
@maa123
maa123 / Resize-php-gd.php
Created September 12, 2016 06:52
なんかがぞうりさいずするやつ
<?php
function($imgsrc,$w,$h){
$img=imagecreatefromstring(file_get_contents($imgsrc));
$width = ImageSx($img);
$height = ImageSy($img);
$out=ImageCreateTrueColor($w, $h);
ImageCopyResampled($out,$img,0,0,0,0,$w,$h, $width, $height);
return $out;
}
var httpsconnect=function(url){
var httpsurl = new java.net.URL(url);
var httpsc = (javax.net.ssl.HttpsURLConnection)httpsurl.openConnection();
httpsc.setRequestMethod("GET");
httpsc.setDoOutput(true);
var reader = new java.io.BufferedReader(new java.io.InputStreamReader(httpsc.getInputStream()));
var body;
var resbody = "";
while ((body = reader.readLine()) != null) {
resbody=resbody+body;