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 java.util.Comparator; | |
import java.util.PriorityQueue; | |
// Write a program that takes in 10 integers via command-line and prints them out in reverse natural order using a PriorityQueue. (this should use a Comparator) | |
public class ReversePriorityQueue | |
{ | |
public class Reverse implements Comparator<Integer> | |
{ | |
public int compare(Integer arg0, Integer arg1) | |
{ |
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
// heh |
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 <stdlib.h> | |
#include "Line.h" | |
int getLength (Line *l) { | |
return l->p2->x - l->p1->x; | |
} | |
Line* NewLine(void) { | |
Line *l = (Line*) malloc (sizeof (Line)); | |
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
[cl-struct-request-response nil nil nil nil nil "https://api.stackexchange.com/2.1/questions?order=desc&sort=activity&site=stackoverflow" nil (:params ((order . "desc") (sort . "activity") (site . "stackoverflow")) :parser json-read :success (lambda (&rest --cl-rest--) " | |
(fn &key DATA &allow-other-keys)" (let* ... ...)) :error (closure (t) (&rest args) (apply ... ... args)) :url "https://api.stackexchange.com/2.1/questions?order=desc&sort=activity&site=stackoverflow" :response #0) #<buffer *request curl*> nil nil ...] | |
REQUEST [error] Error from parser json-read: (json-readtable-error) | |
REQUEST [error] Error (parse-error) while connecting to https://api.stackexchange.com/2.1/questions. |
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
\documentclass[a4paper,10pt]{memoir} | |
% Popular choices for CVs/resumes are curve, moderncv, and (you | |
% guessed it) res. However, I often find it easier to start from | |
% scratch -- these documents especially are made to taste, if you | |
% will. | |
\makeatletter % makes the symbol @ usable in a command sequence. This | |
% is sort of just saying to an end-user of whatever | |
% you're writing 'hey, don't go messing with this unless | |
% you kinda sorta know what you're doing' |
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
(local-set-key | |
(kbd "RET") | |
(lambda () (interactive) | |
(if (= 37 (char-before (1- (point)))) | |
(progn (delete-backward-char 2) (TeX-newline) (TeX-newline)) | |
(if (= 10 (char-before (1- (point)))) | |
(progn (TeX-newline) (indent-for-tab-command)) | |
(if (= 10 (char-before)) | |
(progn (insert "%") (TeX-newline)) | |
(progn (TeX-newline) (indent-for-tab-command))))))) |
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
\documentclass[12pt]{memoir} | |
\usepackage[english]{babel} | |
\usepackage{graphicx} | |
%\usepackage{chancery} | |
%\usepackage[T1]{fontenc} | |
\usepackage{oesch} | |
\usepackage[paperwidth=6in,paperheight=4in,margin={1cm,1cm}]{geometry} |
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
\documentclass[convert={density=3000, | |
size=1080x800, | |
outext=.png}, | |
border=1cm]{standalone} | |
\usepackage{fontspec} | |
\setmainfont{Zapfino} | |
\pagestyle{empty} |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.Web; | |
using System.Web.UI; | |
using System.Web.UI.WebControls; |
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
\documentclass{article} | |
\usepackage{xparse,expl3,environ} | |
\ExplSyntaxOn | |
\NewEnviron{save}[1]{ | |
\tl_new:c { saved_text__#1 } | |
\tl_set:cv { saved_text__#1 } { | |
\BODY | |
} | |
} |
OlderNewer