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
[unstable] | |
codegen-backend = true | |
[profile] | |
incremental = true | |
[profile.dev] | |
codegen-backend = "cranelift" | |
# If you want to attach a debugger, set this to true | |
debug = "line-tables-only" |
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 <ArduinoGraphics.h> | |
#include <Arduino_MKRRGB.h> | |
#include <Stream.h> | |
#define let auto const | |
using namespace std; | |
const double CALIBRATION_SECONDS = 1.0; | |
const double STANDARD_DEVIATION_ABOVE_NOISE_MEAN = 3.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
Escape: 0x35 | |
F1: 0x7a | |
F2: 0x78 | |
F3: 0x63 | |
F4: 0x76 | |
F5: 0x60 | |
F6: 0x61 | |
F7: 0x62 | |
F8: 0x64 | |
F9: 0x65 |
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/env/python3 | |
# Implement a fully automatic cryptocurrency trading bot | |
import requests | |
import json | |
import time | |
import datetime | |
from bs4 import BeautifulSoup as bs | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys |
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
using Unity.Collections; | |
using Unity.Entities; | |
using Unity.Mathematics; | |
using Unity.Physics; | |
using Unity.Physics.Extensions; | |
using Unity.Transforms; | |
namespace Planet | |
{ | |
public class PlanetSystem: SystemBase |
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
using Player; | |
using Unity.Collections; | |
using Unity.Entities; | |
using Unity.Mathematics; | |
using Unity.Physics; | |
using Unity.Physics.Systems; | |
using Unity.Transforms; | |
using UnityEngine; | |
namespace Camera |
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 core::any::TypeId; | |
use maplit::hashmap; | |
use std::collections::HashMap; | |
use std::rc::Rc; | |
fn main() { | |
let container = Container::new(); | |
let _string: Rc<String> = container.resolve_shared(); |
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 <string> | |
#include <memory> | |
#include <functional> | |
#include <vector> | |
#include <iostream> | |
using namespace std; | |
namespace App { | |
namespace Entity { |
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 wikipedia, re, os | |
articles_path = 'articles/' | |
def get_random_wikipedia_article(): | |
title = wikipedia.random() | |
try: | |
content = wikipedia.page(title) | |
except wikipedia.exceptions.DisambiguationError as err: | |
print('⚠️ Randomly picked disambiguation page: ' + err.title + ', picking new one...') |
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
extern crate nalgebra; | |
extern crate alga; | |
extern crate ncollide; | |
use nalgebra::{self as na, Vector2, Isometry2, Point2}; | |
use alga::linear::{AffineTransformation, Translation}; | |
use ncollide::query::Proximity; | |
use ncollide::world::{CollisionObject2, CollisionGroups, CollisionWorld2, GeometricQueryType}; | |
use ncollide::narrow_phase::{ProximityHandler, ContactHandler, ContactAlgorithm2}; | |
use ncollide::shape::{ShapeHandle2, Ball, Cuboid, Plane}; |
NewerOlder