This file contains 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
- name: ansible has syntactic macros ehe :3 | |
hosts: ::1 | |
connection: local | |
tasks: | |
- name: Run a shell command and register its output to foo_result | |
ansible.builtin.shell: echo myfoo first | |
register: foo_result | |
- name: Syntactically generate some tasks | |
copy: |
This file contains 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 <functional> | |
#include <iostream> | |
#include <memory> | |
#include <optional> | |
#include <sstream> | |
#include <string> | |
template <class A> class Maybe { | |
std::unique_ptr<A> contents; | |
Maybe(std::unique_ptr<A> contents) : contents(std::move(contents)) {} |
This file contains 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
\title{CSC 349 - Recurrence Relations} | |
\author{Astrid Yu} | |
\date{September 24, 2021} | |
\documentclass{article} | |
\usepackage[margin=1in]{geometry} | |
\usepackage{multicol} | |
\usepackage{hyperref} | |
\usepackage{amsthm} |
This file contains 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 <iostream> | |
template <bool condition, typename T, typename F> | |
struct Conditional { | |
typedef F result; | |
}; | |
template <typename T, typename F> | |
struct Conditional<true, T, F> { | |
typedef T result; |
This file contains 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
--[[ | |
The_Enderpenguin's Simple Big Reactors Script | |
Usage: > reactor <port id> [redstone, default top] | |
]] | |
REACTOR_ENERGY = 10000000 | |
MAX_ENERGY = 9000000 -- The maximum amount of energy allowed | |
MIN_ENERGY = 1000000 -- The minimum amount of energy allowed |
This file contains 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
interface LoopBuffer { | |
int push(int insert); | |
} | |
class ArrayLoopBuffer implements LoopBuffer { | |
private int[] buf; | |
private int index = 0; | |
public ArrayLoopBuffer(int size) { |
This file contains 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 matplotlib.pyplot as plt | |
from matplotlib import gridspec | |
import sys | |
import pandas as pd | |
paths = sys.argv.copy() | |
del paths[0] | |
count = len(paths) |
This file contains 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 random | |
import sys | |
import time | |
import pygame | |
BACKGROUND_COLOR = (0, 0, 0) | |
SNAKE_COLOR = (0, 255, 0) | |
FOOD_COLOR = (255, 0, 0) | |
BORDER_COLOR = (0, 0, 255) |