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 queues | |
import locks | |
import macros | |
import sequtils | |
type | |
SchedulerCommandType = enum | |
scDone, | |
scYield, | |
scWaitForCoroutine, |
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
package main | |
import "log" | |
import "time" | |
import "reflect" | |
import "unsafe" | |
// suggested via http://stackoverflow.com/a/8363629/87207 | |
func trace(s string) (string, time.Time) { | |
log.Println("START:", s) |
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
#!/bin/bash | |
rm -rf *.o *.[568] test_* |
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 NG.Coroutines; | |
using NG.Math; | |
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Diagnostics; | |
namespace NG.VoxelMap { | |
public static class Const { |
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
Basically you can do that by simple running an external command from | |
your editor. | |
Autocompletion command needs the following information from your editor: | |
1. Current file buffer (possible unsaved). | |
2. Cursor position (offset in bytes from the beginning of the buffer). | |
3. The full file name of the currently edited buffer. It can be | |
relative to the current/working directory. |
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
#pragma once | |
#include <cstdint> | |
#include <cstddef> | |
#include <cstring> | |
#include <vulkan/vulkan.h> | |
namespace vk { | |
template <typename EnumType, typename T = uint32_t> |
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
package main | |
import ( | |
"fmt" | |
"strconv" | |
"strings" | |
) | |
type AnalyzedType struct { | |
Name string |
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
#/!/bin/bash | |
set -e | |
export MYROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
MY=$MYROOT/android | |
MYJAVADIR=$MY/src/com/nosmileface/vquest | |
MYNAME=VQuest | |
MYKEYSTORE=/home/nsf/tmp/AndroidKeys/my-developer-key.keystore |
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
struct Quadric { | |
float q[10]; | |
Quadric() = default; | |
Quadric(float q0, float q1, float q2, float q3, float q4, | |
float q5, float q6, float q7, float q8, float q9) | |
{ | |
q[0] = q0; | |
q[1] = q1; | |
q[2] = q2; | |
q[3] = q3; |
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.Linq; | |
using System.Collections.Generic; | |
namespace NG.Tasks { | |
public class Counter { | |
public int Count = 0; | |
/// Task that waits on this counter. | |
public Task WaitingTask; |
NewerOlder