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
| //! Shows how to render to a texture. Useful for mirrors, UI, or exporting images. | |
| use std::f32::consts::PI; | |
| use bevy::{ | |
| prelude::*, | |
| render::{ | |
| render_asset::RenderAssetUsages, | |
| render_resource::{Extent3d, TextureDimension, TextureFormat, TextureUsages}, | |
| view::RenderLayers, |
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
| vim.g.mapleader = " " | |
| vim.g.maplocalleader = " " | |
| -- Set to true if you have a Nerd Font installed and selected in the terminal | |
| vim.g.have_nerd_font = true | |
| -- [[ Setting options ]] | |
| -- See `:help vim.opt` | |
| -- NOTE: You can change these options as you wish! | |
| -- For more options, you can see `:help option-list` |
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
| def first_check(project): | |
| check0_start = base + 0x1211 | |
| check0_end = base + 0x12f5 | |
| initial_state = project.factory.entry_state( | |
| addr = check0_start, | |
| add_options = { angr.options.SYMBOL_FILL_UNCONSTRAINED_MEMORY, | |
| angr.options.SYMBOL_FILL_UNCONSTRAINED_REGISTERS }) | |
| simulation = project.factory.simgr(initial_state) |
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
| This language process each line as an unit. | |
| ╔══╗ ╔══╗ This line will push 2 and 2 to the stack. | |
| ╚══╝ ╚══╝ | |
| ╔══╗ ╔══╗ This line will push again. | |
| ║«0--0» ║ This will take 4 elements out of the stack, multiply them and put them back. | |
| ╚══╝ ╚══╝ | |
| ╔══╗ ╔══╗ This will push 2 and 2... | |
| ╚══╝ ╚══╝ | |
| «00» This will take two elements out of the stack, and multiply them. | |
| «()» ╔══╗ This line will take two elements out of the stack, multiply them, push the result and then push 2 to the stack |
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/bin/env bash | |
| log() { | |
| printf "(~) $1\n" 1>&2 | |
| } | |
| if [[ -z "$1" ]]; then | |
| log "Usage $0 ..." | |
| exit 1 | |
| fi |
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
| -- Install packer | |
| local execute = vim.api.nvim_command | |
| local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' | |
| if vim.fn.empty(vim.fn.glob(install_path)) > 0 then | |
| execute('!git clone https://github.com/wbthomason/packer.nvim '.. install_path) | |
| end | |
| -- vim.api.nvim_exec([[ |
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
| -- Install packer | |
| local execute = vim.api.nvim_command | |
| local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' | |
| if vim.fn.empty(vim.fn.glob(install_path)) > 0 then | |
| execute('!git clone https://github.com/wbthomason/packer.nvim '.. install_path) | |
| end | |
| -- vim.api.nvim_exec([[ |
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
| #!/bin/python3 | |
| import os, subprocess | |
| source = 'alsa_output.pci-0000_00_1f.3.analog-stereo' # Got this from pw-cli | |
| path = '/tmp/record.wav' | |
| timeout = 60 | |
| trim = '00.500' | |
| record_cmd = f'timeout {timeout} parecord --channels=1 -d {source} {path}' |
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
| #************************************************************************************************** | |
| # | |
| # raylib makefile for Desktop platforms, Raspberry Pi, Android and HTML5 | |
| # | |
| # Copyright (c) 2013-2019 Ramon Santamaria (@raysan5) | |
| # | |
| # This software is provided "as-is", without any express or implied warranty. In no event | |
| # will the authors be held liable for any damages arising from the use of this software. | |
| # | |
| # Permission is granted to anyone to use this software for any purpose, including commercial |
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
| #define Kilobytes(x) ((x)*1024LL) | |
| #define Megabytes(x) (Kilobytes(x)*(1024LL)) | |
| #define Gigabytes(x) (Megabytes(x)*(1024LL)) | |
| #define Terabytes(x) (Gigabytes(x)*(1024LL)) | |
| #define u8 unsigned char | |
| #define u32 unsigned int | |
| struct game_memory { |
NewerOlder