setattr(license, '_Printer__filenames', ['flag']);license()
open('flag','r').read()
__import__('os').system('ls')
help()
os.environ["PAGER"]
が"less"
の場合のみ、less上で!ls
などを実行
<!doctype html> | |
<html> | |
<head> | |
<title>Particles Animation with Three.js</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<div id="canvas"></div> | |
<div id="container"> | |
<div id="content"> |
import { ChallRes } from "./types.ts"; | |
import { getFlag } from "./flags.ts"; | |
import { Form, FormFile } from "https://deno.land/x/multiparser@0.114.0/mod.ts"; | |
import { join } from "https://deno.land/std@0.209.0/path/mod.ts"; | |
const getFilename = (image: FormFile | FormFile[]) => { | |
if (Array.isArray(image)) { | |
// Case for FormFile[] | |
return image.map((file) => file.filename); | |
} else { |
// not tested general Range XXX Query | |
// tested STATIC Range Quiey | |
import { assertEquals, assertThrows } from "https://deno.land/std/testing/asserts.ts"; | |
import { BIT } from "./bit.ts"; | |
Deno.test("BIT Test - Update and Query with Initial Values", () => { | |
type Abelian = number; | |
const identity: Abelian = 0; | |
const operation = (a: Abelian, b: Abelian): Abelian => a + b; |
<?php system('ls -la'); |
{ | |
"sample": { | |
"prefix": "sample", | |
"body": [ | |
"\\documentclass{jsarticle}", | |
"\\usepackage{url} % URL", | |
"\\usepackage{color} % 色付け", | |
"\\usepackage{amsmath} % align環境", | |
"\\usepackage{ascmac} % 枠付き文章", | |
"\\usepackage{listings,jlisting} % ソースコード", |
fn cos_sim(q: &Vec<i32>, d: &Vec<i32>) -> f32 { | |
assert_eq!(q.len(), d.len()); | |
// 分母 | |
let mut dot = 0.0; | |
for i in 0..q.len() { | |
dot += (q[i] * d[i]) as f32; | |
} | |
// 分子左 | |
let mut left = 0.0; |
#include <stdio.h> | |
#include <stdlib.h> | |
struct CharStack { | |
char* data; | |
int top; // 半開区間で終端を管理する | |
int max; | |
} typedef stack; | |
void push(char* data, char c, int* top) { |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct __physcheck | |
{ | |
char name[20]; | |
int height; | |
double vision; | |
struct __physcheck *next; | |
} PhysCheck; |