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
void main() { | |
int? x = 42; | |
print(x); | |
void? v; // compile error | |
} |
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 <cctype> | |
#include <cstdlib> | |
#include <fstream> | |
#include <iostream> | |
#include <string> | |
#include <unordered_map> | |
#include <queue> | |
const int kDefaultNumberOfResults = 100; |
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
template <typename> struct a; | |
template <typename> struct b; | |
template <typename... c> struct d : a<b<c...>> {}; | |
int main() {} | |
/* Output: | |
Checking prep.cpp ... | |
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 <boost/hana.hpp> | |
namespace hana = boost::hana; | |
template <typename a, std::enable_if_t<hana::Constant<a>::b>> a sqrt() { | |
hana::integral_c<sqrt(a::b)>; | |
} | |
int main() {} |
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
#!/usr/bin/env python3 | |
"""Spellchecks src/*.md files with enchant""" | |
import glob | |
import sys | |
import enchant | |
from enchant.tokenize import get_tokenizer, EmailFilter, URLFilter | |
DICT_TAG = "en_US" |
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
#pragma once | |
#include <algorithm> | |
#include <functional> | |
template<typename ForwardIt, typename Compare = std::less<>> | |
void insertion_sort(ForwardIt begin, ForwardIt end, Compare comp = Compare{}) | |
{ | |
if (std::distance(begin, end) < 2) { | |
return; | |
} |
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
personal_ws-1.1 en 0 utf-8 | |
abcabcabc | |
Addr | |
alignof | |
api | |
APIs | |
aren | |
ay | |
b'A | |
backtrace |
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
package com.company; | |
import java.util.logging.*; | |
public class Main { | |
public static void main(String[] args) { | |
Logger logger = Logger.getLogger("main"); |
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
#!/bin/sh | |
# Generates list of spellings in *.md files | |
SPELLINGS_FILE=spellings.txt | |
cat ./*.md | aspell list | sort -u > "$SPELLINGS_FILE" | |
#cat spellings.txt >> ~/.aspell.en.pws |
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
(define scn (empty-scene)) | |
(define width (image-width scn)) | |
(define height (image-height scn)) | |
(define (render-circle r) | |
(place-image | |
(circle r "solid" "red") | |
(/ width 2) | |
(/ height 2) |
NewerOlder