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
| #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | |
| pub enum TypeDispatchKind { | |
| Bool, | |
| Int, | |
| } | |
| // From LLVM | |
| pub struct BoolValue<'ctx> { | |
| pub value: bool, | |
| _phantom: std::marker::PhantomData<&'ctx ()>, |
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 asyncio | |
| import aiohttp | |
| import re | |
| import time | |
| from urllib import parse | |
| MUL = 1 | |
| PAGE = 1000 | |
| BASE = 568587337453 | |
| # BASE = 568586360001 6번대는 여기 직전까지 없는거 확인 - 이 번호부터 시작 (12/26) |
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
| class Cursor(): | |
| def __init__(self, s): | |
| self.s = ''.join(s.split()) | |
| def is_remains(self, i=0): | |
| return i < len(self.s) | |
| def advance(self, n): |
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 crate::{ | |
| NativeHandle, Object, ShaderAttribute, ShaderAttributeType, ShaderUniform, ShaderUniformBlock, | |
| ShaderUniformType, | |
| }; | |
| use gl33::types::*; | |
| use std::any::type_name; | |
| use std::collections::HashMap; | |
| use std::ffi::CString; | |
| use std::mem::forget; | |
| use std::ptr::{null, null_mut}; |
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 crate::component::*; | |
| use crate::render::*; | |
| use crate::system::System; | |
| use crate::EngineContextWithoutSystemManager; | |
| use legion::*; | |
| use std::cmp::{max, min, Ordering}; | |
| use std::mem::size_of; | |
| use std::sync::Arc; | |
| enum RendererRef<'r> { |
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 rand::seq::SliceRandom; | |
| use rand::{thread_rng, Rng}; | |
| fn main() { | |
| let mut rng = thread_rng(); | |
| for _ in 0..1000 { | |
| let total = 1347; | |
| let mut count_who_never_received = 1347; | |
| let mut users = (0..total).collect::<Vec<_>>(); |
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 * as fs from 'fs'; | |
| import * as path from 'path'; | |
| import { spawnSync } from 'child_process'; | |
| const intPath = path.join('dist', 'intermediates', 'exp-deps'); | |
| const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); | |
| const deps = []; | |
| if (pkg.dependencies) for (const dep in pkg.dependencies) deps.push(`${dep}@${pkg.dependencies[dep]}`); |
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::cmp::max; | |
| use std::collections::VecDeque; | |
| macro_rules! loop_perm { | |
| ($src_queue:ident, $src_queue_len:literal, $target_stack:ident => $code:block) => { | |
| for _ in 0..$src_queue_len { | |
| $target_stack.push($src_queue.pop_back().unwrap()); | |
| $code | |
| $src_queue.push_front($target_stack.pop().unwrap()); | |
| } |
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 math | |
| import random | |
| import torch | |
| from game import Game | |
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 math | |
| import random | |
| import torch | |
| from torch.distributions.dirichlet import Dirichlet | |
| from game import Game |
NewerOlder