Skip to content

Instantly share code, notes, and snippets.

# FindVulkan
# ----------
#
# Try to find Vulkan.
#
# Once done this will define:
#
# VULKAN_FOUND - Vulkan found
# VULKAN_INCLUDE_DIRS - Vulkan include directories
# VULKAN_LIBRARIES - Vulkan libraries
@reima
reima / ButtonMod.cs
Last active September 2, 2022 06:44
using ColossalFramework.UI;
using ICities;
using UnityEngine;
namespace ButtonMod
{
public class ButtonMod : IUserMod
{
public string Name { get { return "Button"; } }
public string Description { get { return "Shows a button"; } }
# Usage: watch.py [pattern] [command...]
#
# Watches files for changes and calls a command when a new file has been created
# or an existing file has been modified. A single % in the command will be
# replaced by the path of the created/modified file.
#
# Examples:
# watch.py *.tex pdflatex main.tex
# watch.py *.dot dot -Tpdf -O %
@reima
reima / timestamp.py
Last active December 11, 2015 20:58 — forked from robcowie/timestamp.py
# -*- coding: utf-8 -*-
from datetime import datetime
import sublime_plugin
class TimestampCommand(sublime_plugin.EventListener):
"""Expand `isoD`, `now`, `datetime`, `utcnow`, `utcdatetime`,
`date` and `time`
"""
diff --git a/vm/builtin/string.cpp b/vm/builtin/string.cpp
index d6db712..f5dd250 100644
--- a/vm/builtin/string.cpp
+++ b/vm/builtin/string.cpp
@@ -434,7 +434,9 @@ namespace rubinius {
chr = str[i];
seq = ++i < bytes ? str[i] : -1;
- if(seq == '-') {
+ if(chr == '\\' && seq >= 0) {
#pragma once
#include "DXUT.h"
typedef enum RESOURCE_IDENTIFIER {
RESOURCE_IDENTIFIER_POSITIONS_TEX2D,
RESOURCE_IDENTIFIER_POSITIONS_SRV,
RESOURCE_IDENTIFIER_NORMALS_TEX2D,
RESOURCE_IDENTIFIER_NORMALS_SRV,
RESOURCE_IDENTIFIER_ALBEDO_SRV,
RESOURCE_IDENTIFIER_FRAMEBUFFER_RTV,
require 'rubygems'
require 'rss/maker'
require 'nokogiri'
require 'open-uri'
URL = 'http://wwwrbg.in.tum.de/kontakt/FMI_Bistro/aktuell.html'
DAY_PATTERN = /\d?\d\.\d?\d.\d{4}/
MEAL_PATTERN = /(\d+)\.((?:.|\n)+?\d\.\d\d)$/
DATES = {