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
.macro li.s (%f_reg, %value) | |
addi $sp, $sp, -4 # sp++ | |
li $at, %value # at = %value | |
sw $at, ($sp) # push(at) | |
lwc1 %f_reg, ($sp) # %f_reg = pop() | |
addi $sp, $sp, 4 # sp-- | |
cvt.s.w %f_reg,%f_reg # %f_reg = (float)%f_reg | |
.end_macro | |
.macro li.d (%f_reg, %value) |
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
/**************************************************************************** | |
* * | |
* Arquivo EstudoDirigidoX.c criado por Gabriel Barbosa (12/0050935) * | |
* DESCRICAO DO PROBLEMA * | |
* Codigo multiplataforma * | |
* Usar flags -std=c11 -lpthread para compilar para Windows * | |
* Usar flags -std=c11 -pthread para compilar para Linux * | |
* * | |
****************************************************************************/ |
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
/************* | |
* | |
* The following code snippet was written by https://github.com/bestknighter | |
* It's freely available at https://gist.github.com/bestknighter/ec075ee402176b886a3c51913ab8c08c. | |
* You can copy, change and even make money with it | |
* as long as credit is properly given. | |
* | |
* You can use these functions as inside the sheet itself, | |
* just like other functions such as with ADD() or COUNT(). | |
* |
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
// This gist can be found at https://gist.github.com/bestknighter/660e6a53cf6a6643618d8531f962be2c | |
// I modified Aras Pranckevičius's awesome shader code to be able to handle Infinite and Not A Number numbers | |
// Tested on Unity 2023.1.0a15 with ShaderGraph 15.0.1. | |
// Quick try at doing a "print value" node for Unity ShaderGraph. | |
// | |
// Use with CustomFunction node, with two inputs: | |
// - Vector1 Value, the value to display, | |
// - Vector2 UV, the UVs of area to display at. |
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
using System; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var fc = new MyIntViewer_FancyConsole(); | |
var sc = new MyIntViewer_SimpleConsole(); | |
Console.WriteLine("Hello World"); |
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
#!/usr/bin/env sh | |
if [ $# -ne 4 ]; then | |
echo "Usage: code3diff BASE REMOTE LOCAL MERGED" | |
exit -1 | |
fi | |
BASE=$1 | |
REMOTE=$2 | |
LOCAL=$3 |
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
root=true | |
[*] | |
guidelines = 80 2px solid 18FFFFFF, 100 2px dotted 2C1EFF00, 120 1px solid 1FFFFB00, 150 2px solid 30FF0000 | |
[*.cs] | |
indent_size = 4 | |
indent_style = space | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
public static class StringExtensions { | |
/// <summary> | |
/// Transforms strings like variable and class names to nice UI-friendly strings, removing | |
/// underlines, hiphens, prefixes and the like | |
/// </summary> | |
/// <param name="str">The string to be nicified</param> | |
/// <param name="preserveAccronyms">If accronym letters should be kept together</param> | |
/// <returns>A nicified Title Cased version ready for UIs</returns> | |
public static string Nicify(this string str, bool preserveAccronyms = true) { | |
string trimmed = str; |