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
import K.Core; | |
export ReferencesSample; | |
void ObviousFailure() | |
{ | |
int32 x = 7; | |
weak int32 r = x; | |
if (r > 5) | |
{ |
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> | |
using namespace std; | |
char rotate(char c) | |
{ | |
char result = c; | |
char base = 0; | |
if (c >= 'a' && c <= 'z') | |
{ |
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> | |
using namespace std; | |
enum suits { CLUBS, DIAMONDS, SPADES, HEARTS }; | |
struct card | |
{ | |
int number; | |
suits suit; | |
}; |
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> | |
using namespace std; | |
int Get(int n) | |
{ | |
int a = 0; | |
int b = 1; | |
for (int i = 0; i < n; ++i) | |
{ |
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 <unordered_set> | |
#include <cstdint> | |
using namespace std; | |
typedef unordered_set<int64_t> NumberSet; | |
int64_t Go(int64_t n) | |
{ | |
int64_t total = 0; |
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
local gr = Nullocity.GetRandom | |
entitiesByHandle = {} | |
cameraEntity = nil | |
function FixPosition(entity) | |
local px, py = entity.GetPosition() | |
local vx, vy = entity.GetVelocity() | |
local radius = entity.GetRadius() | |
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
local gr = Nullocity.GetRandom | |
entitiesByHandle = {} | |
cameraEntity = nil | |
function FixPosition(entity) | |
local px, py = entity.GetPosition() | |
local vx, vy = entity.GetVelocity() | |
local radius = entity.GetRadius() | |
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 "sqlite3.h" | |
#include <iostream> | |
#include <fstream> | |
#include <unordered_map> | |
#include <string> | |
#include <cstring> | |
using namespace std; | |
const char OneHalf[] = { (char)0xc2, (char)0xbd, 0x00 }; | |
const char OneQuarter[] = { (char)0xc2, (char)0xbc, 0x00 }; |
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<class T> | |
std::ostream& operator<<(std::ostream& stream, const std::vector<T>& content) | |
{ | |
stream << "["; | |
if (content.size() > 0) | |
{ | |
stream << content[0]; | |
for (std::size_t i = 1; i < content.size(); ++i) |
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
#ifndef XMLWRITER_HPP | |
#define XMLWRITER_HPP | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
namespace Kelly | |
{ | |
class XmlWriter |