void Setup()
{
RCC->APB1ENR |= RCC_APB1ENR_TIM14EN;
TIM14->PSC = 48-1; //Counts up in microseconds
TIM14->ARR = 65535;
TIM14->CNT = 0;
TIM14->CR1 = 1;
TIM14->DIER = TIM_DIER_CC2IE | TIM_DIER_UIE;
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
// Based on (but modified from) | |
/************************************************************* | |
* Description: We get some wifi info using nl80211 * | |
* Licence : Public Domain. * | |
* Author : Antonios Tsolis (2016) * | |
*************************************************************/ | |
// | |
// Modifications by C. Lohr (still under public domain) | |
#include <stdio.h> |
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 <stdio.h> | |
#include <sys/ioctl.h> //ioctl() call defenitions | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
/* ESP8266 / ESP32 Dual-Transistor Boot Bridge: | |
DTR RTS RST GP0 |
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 was the version from Dec 12, 2020 | |
/* | |
NO EUCLID 2: This time written from the ground up for MODERN (2020) | |
GPUs! No more janky math stuff to support the NVIDIA 460M or some | |
awful ancient ATI card. | |
The three textures we have are: | |
Read only when a collision may be possible. | |
GeoTex: |
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
/* Copyright (c) 2012-2017, ARM Limited and Contributors | |
* | |
* SPDX-License-Identifier: MIT | |
* | |
* Permission is hereby granted, free of charge, | |
* to any person obtaining a copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation the rights to | |
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | |
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
* |
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
$ echo -n "username:password" | base64 | |
$ echo -e "api.vrchat.cloud\tFALSE\t/\tFALSE\t0\tapiKey\tJlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26" > cookiejar.txt | |
$ curl -b cookiejar.txt -c cookiejar.txt -A "WorldMon" -H "Authorization: Basic ########################" https://api.vrchat.cloud/api/1/auth/user | |
{"requiresTwoFactorAuth":["totp","otp"]} | |
$ curl -X 'POST' \ | |
'https://api.vrchat.cloud/api/1/auth/twofactorauth/totp/verify' \ | |
-H 'accept: application/json' \ | |
-H 'Content-Type: application/json' \ | |
-b cookiejar.txt -c cookiejar.txt \ | |
-d '{ |
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
// Execute this with `tcc testgen.c -run` | |
#include <stdio.h> | |
#include "unityassettexture.h" | |
#include <math.h> | |
int main() | |
{ | |
float asset3d[50][50][50][4] = {0}; | |
int x, y, 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
//Based on https://github.com/cnlohr/lamenet/blob/master/librawp.c | |
#include <stdio.h> | |
#include <arpa/inet.h> | |
#include <string.h> | |
#include <linux/if_packet.h> | |
#include <sys/ioctl.h> | |
#include <sys/socket.h> | |
#include <net/if.h> | |
#include <netinet/ether.h> |
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
Shader "Unlit/PerfEat" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
LOD 100 |