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
'use strict'; | |
var paper = require('paper'); | |
paper.setup(new paper.Size(2048, 1440)); | |
function ShapeIntersection() { | |
var diamond0 = new paper.Path.RegularPolygon(new paper.Point(0, 0), 4, 100); | |
diamond0.rotate(45.0); |
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
2017-05-11 16:00:00 1832.97 USD -0.06% 619.75 + 0.0447 null 1.91% 0.031060 BTC 2897.41 USD 195.43% +61.48% | |
{ days: 90, | |
profit_stop_enable_pct: 10, | |
profit_stop_pct: 1, | |
sell_rate: -0.006, | |
trend_ema: 36, | |
period: '1h', | |
strategy: 'trend_ema_rate', | |
sell_stop_pct: 4, | |
buy_stop_pct: 0, |
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
#define PRODUCTION_BUILD | |
#define SUPPRESS_LOGS | |
using System; | |
public class StringAllocTest { | |
public static void Main(string[] args) { | |
Random random = new Random(); | |
var variable_here_so_runtime_allocation_needed = random.Next(0, 1000000); | |
Log("HERE IS A VERY LONG STRING, AND IT MIGHT " + variable_here_so_runtime_allocation_needed + " BE SO LONG THAT HEAP MEMORY MUST BE ALLOCATED TO STORE IT OMG!"); //, false); | |
} |
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
#include "SDL2/SDL.h" | |
#include "SDL2/SDL_mixer.h" | |
static const char *MY_COOL_MP3 = "cool_tunes.mp3"; | |
int main(int argc, char **argv) { | |
int result = 0; | |
int flags = MIX_INIT_MP3; | |
if (SDL_Init(SDL_INIT_AUDIO) < 0) { |
OlderNewer