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
| PROCESSOR 6502 | |
| INCLUDE "vcs.h" | |
| LIST ON ; turn on program listing, for debugging on Stella | |
| ;============================================================================= | |
| ; MEMORY / VARIABLES | |
| ;============================================================================= | |
| SEG.U variables |
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 com.google.common.base.Stopwatch; | |
| import javax.imageio.ImageIO; | |
| import java.awt.*; | |
| import java.awt.image.BufferedImage; | |
| import java.awt.image.DataBufferInt; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.Random; |
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 org.apache.pdfbox.pdmodel.PDDocument; | |
| import org.apache.pdfbox.pdmodel.PDResources; | |
| import org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject; | |
| import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.File; | |
| import java.security.MessageDigest; | |
| import java.util.ArrayDeque; |
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
| scriptencoding utf-8 | |
| "------- | |
| "PLUGINS | |
| "------- | |
| "Specify a directory for plugins | |
| call plug#begin('~/.vim/plugged') | |
| "fzf | |
| Plug 'junegunn/fzf.vim' | |
| Plug 'tweekmonster/fzf-filemru' |
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
| ************************************************************************************************************** | |
| * +---------+ +-----------------+ +-------------+ +-----------------+ * | |
| * | | | | | | | | * | |
| * | Client | | DocumentService | | Document DB | | Oembed resolver | * | |
| * | | | | | | | | * | |
| * +----+----+ +--------+--------+ +------+------+ +--------+--------+ * | |
| * | | | | * | |
| * | | | | * | |
| * | | | | * | |
| * | addOEm |
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
| 'use strict'; | |
| let Left = x => this.__value = x; | |
| Left.of = x => new Left(x); | |
| Left.prototype.isRight = () => false; | |
| Left.prototype.isLeft = () => true; |
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
| 'use strict'; | |
| let Option = x => this.__value = x; | |
| Option.of = x => new Option(x); | |
| Option.empty = x => new Option(null); | |
| Option.prototype.isEmpty = () => this.__value === null || this.__value === undefined; |
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
| float df_sphere(in vec3 ray, in float radious) { | |
| return length(ray) - radious; | |
| } | |
| void mainImage(out vec4 frag_color, in vec2 frag_coord) { | |
| float aspect = iResolution.y / iResolution.x; | |
| vec3 eye = vec3(0.0, 0.0, -2.0); | |
| vec3 ray = vec3((frag_coord.xy / iResolution.xy) - 0.5, -1.0) - eye; | |
| ray.y *= aspect; | |
| vec3 r = normalize(ray); |
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
| function up() { | |
| declare -i jumps | |
| if [ $# -eq 0 ]; then | |
| let jumps=1 | |
| fi | |
| if [[ $1 =~ ^-?[0-9]+$ ]]; then | |
| let jumps=$1 | |
| else |
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 <cmath> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| #include <string> | |
| #include <limits> | |
| int main() { | |
| int t; std::cin >> t; | |
| while (t--) { |
NewerOlder