This file contains hidden or 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
| from enum import Enum, auto | |
| class TokenType(Enum): | |
| NUMBER = auto() | |
| OPERATOR = auto() | |
| EOF = auto() | |
| class Token: | |
| def __init__(self, type, lexeme): | |
| self.type = type | |
| self.lexeme = lexeme |
This file contains hidden or 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
| // ==UserScript== | |
| // @name nvshens | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description auto page | |
| // @author caowentao | |
| // @match https://*.nvshens.org/g/*/ | |
| // @match https://*.gnvshen.com/g/*/ | |
| // @match https://*.fnvshen.com/g/*/ | |
| // @grant none |
This file contains hidden or 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/local/bin/python3 | |
| import sys | |
| from PIL import Image, ImageFont, ImageDraw | |
| if len(sys.argv) < 3: | |
| print('请指定项目名称和版本号,如:Client V7.3') | |
| sys.exit(-1) | |
| backImg = Image.open('empty.jpg') |
This file contains hidden or 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 main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "strconv" | |
| "time" | |
| ) |
This file contains hidden or 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 main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "net/smtp" | |
| "strings" |
This file contains hidden or 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 requests | |
| loginData = {'session[email]': '你的登录邮箱', | |
| 'session[password]': '你的账号密码'} | |
| baseURL = "https://lmzdx.net" | |
| session = requests.Session() | |
| followingUsers = [] | |
| allUsers = [] | |
| def getUsersFromPage(page, tag): |
This file contains hidden or 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 main | |
| import ( | |
| "fmt" | |
| "html/template" | |
| "io/ioutil" | |
| "net/http" | |
| "os" | |
| "strings" |
This file contains hidden or 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
| Const WIDTH = 20 | |
| Const HEIGHT = 20 | |
| Enum DATA | |
| SNAKE_DATA | |
| BACK_DATA | |
| FOOD_DATA | |
| End Enum | |
| Enum DIR |
This file contains hidden or 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 tetris; | |
| import java.awt.*; | |
| import java.awt.event.*; | |
| import javax.swing.*; | |
| public class Tetris | |
| { | |
| public static final int FRAME_WIDTH = 305; | |
| public static final int FRAME_HEIGHT = 525; |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define N 10000 | |
| int main() | |
| { | |
| int i, j, a[N]; | |
| for (i = 2; i < N; i++) a[i] = 1; | |
| for (i = 2; i < N; i++) | |
| { |
NewerOlder