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 "httpd.h" | |
#include "http_core.h" | |
#include "http_protocol.h" | |
#include "http_request.h" | |
#include <time.h> | |
#include <syslog.h> | |
/** | |
* Definitions. |
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
# Usage: | |
# - Start new mindmap: | |
# `ruby ttymindmap.rb` | |
# - Open Freemind format MM mindmap: | |
# `ruby ttymindmap.rb <PATH-TO-MM-FILE>` | |
# | |
# Press `h` key when running for help. | |
require 'nokogiri' |
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
EMPTY = 0x0 | |
UP = 0x1 | |
RIGHT = 0x2 | |
DOWN = 0x4 | |
LEFT = 0x8 | |
# Maze generator class. | |
class Generator | |
def initialize(w, h) |
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
use std::collections::HashMap; | |
use std::thread::{self, sleep}; | |
use std::time; | |
use std::sync::{mpsc, Arc}; | |
macro_rules! char_token { | |
($c:expr, $t:ident) => ({ | |
let mut value = String::new(); | |
value.push($c); | |
Some(Token{ttype: TokenType::$t, value:value}) |
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
""" | |
Chip8 emulator. | |
""" | |
import array | |
import random | |
import pygame | |
# 4K. |
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; | |
class QuickSortThreaded { | |
private int[] l; | |
QuickSortThreaded(int[] l) { | |
this.l = l; | |
long start = System.nanoTime(); | |
new Sorter(l, 0, l.length - 1).sort(0, l.length - 1); |
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 main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
type ElemType int32 |
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
(function () { | |
'use strict'; | |
console.log('Debug has started.'); | |
var $base = jQuery('<SELECTOR>'); | |
var list = traverse($base[0]); | |
var classes = []; | |
var element = null; |
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 <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <iomanip> | |
using namespace std; | |
#define GROUP_DEC_SIZE 4 | |
class BigInt { | |
private: |
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 <iostream> | |
#include <chrono> | |
#include <thread> | |
#include <cstdlib> | |
#include <ctime> | |
#include <cstring> | |
using namespace std; | |
#define W 120 |