I hereby claim:
- I am phillyai on github.
- I am adnim (https://keybase.io/adnim) on keybase.
- I have a public key ASBXmfd-p-s02xrOEM9MV70yLb8eXT-on3u-XHN36E_ykgo
To claim this, I am signing this object:
| import json | |
| import urllib.request | |
| from typing import Generator | |
| def pages(limit: int = 10, page: int = 1) -> Generator: | |
| cur = page | |
| while True: | |
| url = 'https://danbooru.donmai.us/posts.json?limit={}&page={}'.format(limit, cur) | |
| res = json.loads(urllib.request.urlopen(url).read().decode('utf-8')) |
| from danbooru import pages | |
| from PIL import Image | |
| import requests | |
| from io import BytesIO | |
| def get(size=(300, 300)) : | |
| ''':returns PIL.Image, 0~2 raiting level. 0 is safe, 1 is questionable, 2 is explicit.''' | |
| p = pages(limit=100) | |
| while True: |
I hereby claim:
To claim this, I am signing this object:
| foreach (string device in System.IO.Directory.GetLogicalDrives()) | |
| { | |
| System.IO.DriveInfo dr = new System.IO.DriveInfo(device); | |
| if (dr.DriveType != System.IO.DriveType.Removable) continue; | |
| Console.WriteLine(dr.RootDirectory.ToString()); | |
| } |
| #include<stdio.h> | |
| int main() | |
| { | |
| int data[3][3]; | |
| data[0][0] = 0; data[0][1] = 1; data[0][2] = 2; | |
| data[1][0] = 3; data[1][1] = 4; data[1][2] = 5; | |
| data[2][0] = 6; data[2][1] = 7; data[2][2] = 8; | |
| printf("%d", data[1][2]); | |
| printf("%d", data[0][5]); |
| class Contract: | |
| @classmethod | |
| def check(cls, value): | |
| pass | |
| class Typed(Contract): | |
| @classmethod | |
| def check(cls, value): | |
| assert isinstance(value, cls.type), f'Expected {cls.type}' |
| _contracts = {} | |
| class Contract: | |
| @classmethod | |
| def __init_subclass__(cls): | |
| _contracts[cls.__name__] = cls | |
| def __set__(self, instance, value): | |
| self.check(value) |
| Bitmap b = new Bitmap(@"D:\Image\design\์น์\ํ์ค์ค.png"); | |
| var bitmapData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), System.Drawing.Imaging.ImageLockMode.ReadWrite, b.PixelFormat); | |
| var length = bitmapData.Stride * bitmapData.Height; | |
| byte[] bytes = new byte[length]; | |
| // Copy bitmap to byte[] | |
| Marshal.Copy(bitmapData.Scan0, bytes, 0, length); | |
| b.UnlockBits(bitmapData); |
| static Bitmap b; | |
| static void Main(string[] args) | |
| { | |
| var methods = typeof(Program).GetMethods(BindingFlags.Static | BindingFlags.NonPublic); | |
| foreach (var method in methods) | |
| { | |
| if (method.GetCustomAttribute<GetRuntime>() != null) | |
| { | |
| int range = 10; | |
| DateTime before = DateTime.Now; |
Train Simulator๋ 1์ธ์นญ ๊ธฐ์ฐจ ์ด์ ์ ์ค์ ์ ๋๊ณ ์๊ณ , ๋ฏธ๋ ๋ฉํธ๋ก๋ ๋ ธ์ ๋์์ธ์ ์ค์ ์ ๋๊ณ ์์.
https://www.youtube.com/watch?v=VzIQuzoMlqk ๊ฐ์ ์์์ ๋ณด๋ฉด ๋๋ ์ ์๋ ์พ๊ฐ์ ์ ์/์๋ฎฌ ๋์์ ๋์น์ง ์๊ฒ ๋๋ ์ ์๋๋ก ํ๊ณ ์ถ์.