Skip to content

Instantly share code, notes, and snippets.

View PatrickLerner's full-sized avatar

Patrick Lerner PatrickLerner

  • Instaffo GmbH
  • Europe
  • 10:53 (UTC +02:00)
View GitHub Profile
{ scopeName = 'mythic';
fileTypes = ( 'mythics', 'mythicc' );
patterns = (
{ name = 'comment.block.mythic';
match = '^ (.+)';
captures = { 1 = { name = 'comment.block.mythic'; }; };
},
{ name = 'markup.heading.mythic';
match = '^(.+)\:$';
captures = { 1 = { name = 'markup.heading.mythic'; }; };
#!/usr/bin/env bash
for num in {1..30} ; do
volume=$(printf %02d ${num%.*})
volumefolder="Mangajin v${volume}"
mkdir "${volumefolder}"
for i in {0..99} ; do
if (("$num" > "21")) && (("$num" < "29")) ; then
page=$(printf %03d ${i%.*})
else
<div class="question japanese">
<span>{{furigana:日本語}}</span>
</div>
<div class="answer">{{Meaning}}</div>
<div class="hidden">{{Audio}}</div>
/**
* Looks at the triangle references in e and replaces the oldRef with the
* newRef
*
* @param e
* the edge
* @param oldRef
* the old reference that should be replaced
* @param newRef
* the new reference
public void deletePoint(Point p) {
HashSet<Triangle> innerTriangles = new HashSet<Triangle>();
HashSet<Edge> outerEdges = new HashSet<Edge>();
// root is any outer point. From this point on we will later build the
// new triangles
Point root = null;
// build the sets noted above
try {
#!/bin/bash
OPTIND=1
ruby=0
url=""
open=0
notvertical=0
download=0
show_help () {
#!/usr/bin/env ruby
# encoding: utf-8
# Version: 0.2a 2013-06-28
require 'nokogiri'
require 'open-uri'
require 'tmpdir'
require 'trollop'
require 'rbconfig'
$is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
動物[どうぶつ] Animal
飲[の]み 物[もの] Drink
鳥[とり] Bird
焼[や]き 鳥[とり] Grilled Chicken
白鳥[はくちょう] Swan
料理[りょうり] Cooking
料金[りょうきん] Charge
授業料[じゅぎょうりょう] Tuition
給料[きゅうりょう] Salary
理由[りゆう] Reason
0: proc - (:root:) creates proc 0 (barber)
0: proc - (:root:) creates proc 2 (customer)
1: proc 1 (customer) SleepingBarberProblem.pml:47 (state 14) [haircut[me] = 0]
2: proc 2 (customer) SleepingBarberProblem.pml:47 (state 14) [haircut[me] = 0]
3: proc 1 (customer) SleepingBarberProblem.pml:49 (state 11) [(sleeping)]
4: proc 1 (customer) SleepingBarberProblem.pml:51 (state 5) [sleeping = 0]
5: proc 1 (customer) SleepingBarberProblem.pml:55 (state 4) [chair = me]
6: proc 0 (barber) SleepingBarberProblem.pml:19 (state 1) [((sleeping==0))]
7: proc 1 (customer) SleepingBarberProblem.pml:66 (state 12) [.(goto)]
8: proc 2 (customer) SleepingBarberProblem.pml:49 (state 11) [(!(sleeping))]
/*
* Patrick Lerner
* Manual Spari
*/
#include <iostream>
#include <cmath>
template <typename T, int N>
class Vector