One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| struct List { | |
| head: Link, | |
| } | |
| type Link = Option<Box<Node>>; | |
| struct Node { | |
| elem: i32, | |
| next: Link, | |
| } |
| <?php | |
| use Amp\Http\Server\RequestHandler\CallableRequestHandler; | |
| use Amp\Http\Server\Server; | |
| use Amp\Http\Server\Request; | |
| use Amp\Http\Server\Response; | |
| use Amp\Http\Status; | |
| use Amp\Socket; | |
| use Symfony\Component\HttpFoundation\Request as SymfonyRequest; | |
| use Symfony\Component\HttpFoundation\File\UploadedFile; |
| #include <stdio.h> | |
| typedef unsigned char* byte_pointer; | |
| void show_bytes(byte_pointer start, size_t len) { | |
| size_t i; | |
| for (i = 0; i < len; i++) { | |
| printf("%.2x", start[i]); | |
| } | |
| printf("\n"); |
| <?php | |
| function transform($s) | |
| { | |
| $s0 = preg_replace('#String#', 'strval', $s); | |
| $s1 = preg_replace('#!!\[\]#', 1, $s0); | |
| $s2 = preg_replace('#!\[\]#', 0, $s1); | |
| $s3 = preg_replace('#\[\]#', 0, $s2); | |
| $s4 = preg_replace('#\)\)\)\+\(\(#', '))).((', $s3); | |
| $s5 = preg_replace('#\)\)\+\(#', ')).(', $s4); |
| # python binary tree | |
| class BinaryNode: | |
| def __init__(self, value = None): | |
| self.value = value | |
| self.left = None | |
| self.right = None | |
| def add(self, val): | |
| if val <= self.value: | |
| if not self.left: # 左子树为空,直接设置左子树 |
| <?php | |
| namespace Deployer; | |
| require 'recipe/rsync.php'; | |
| set('rsync', [ | |
| 'exclude' => [ | |
| '.env', | |
| '.git/', | |
| '.gitignore', |
| import numpy as np | |
| from scipy.stats import truncnorm | |
| import matplotlib.pyplot as plt | |
| class RedpacketPolicy: | |
| def __init__(self): | |
| self.sd = 80 | |
| self.miss = 0.1 | |
| def gen(self, amount, total): |
| import Pusher from "pusher-js"; | |
| import axios from 'axios'; | |
| // online token | |
| const jwtToken = 'eyJ0eXAiOiJKV1QiLCJhbGciOiAF7vaVJ0P4s'; | |
| const pusher = new Pusher("f38f86445b8c318d6ac1", { | |
| authEndpoint: "http://21ji.wanuq.com/pusher/auth", | |
| authTransport: "ajax", | |
| auth: { | |
| headers: { |
| import * as puppeteer from 'puppeteer'; | |
| import * as fs from 'fs'; | |
| /** | |
| * 使用typescript实现一个点评页面爬虫 | |
| */ | |
| class DianpingDownloader { | |
| private urls; | |
| /** |