Skip to content

Instantly share code, notes, and snippets.

Avatar

Nguyễn Thế Trung thetrung

View GitHub Profile
@thetrung
thetrung / run_server.sh
Created Sep 8, 2020
Start SimpleHTTPServer in Background
View run_server.sh
#!/usr/bin/env bash
# Create a page in the current dir
echo "Init server..."
# Start server
python -m SimpleHTTPServer 8000 &> /dev/null &
pid=$!
@instance-id
instance-id / DarkTheme.cs
Last active Jul 5, 2020
Legit/Legal Unity 2019.3.0bx beta dark theme one click converter
View DarkTheme.cs
// --- instance.id ------------------------------------------------------------
// Thanks to TheZombieKiller and Peter77 for creating this
// https://forum.unity.com/threads/editor-skinning-thread.711059/#post-4785434
// Tested on Unity 2019.3.0b1 - 95% Dark mode Conversion
// Example Screenshot - https://i.imgur.com/9q5VPQk.png
// (Note - Once I ran this, I had to hit play and then it took effect)
// ----------------------------------------------------------------------------
using System;
using System.Text.RegularExpressions;
@francoiscote
francoiscote / HighSierra-10.13.6-Hackintosh.md
Last active Apr 8, 2021
High Sierra 10.13.6 Hackintosh
View HighSierra-10.13.6-Hackintosh.md
View PostProcessingController.cs
using Client.Game.Managers;
using Client.Game.Utils;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.PostProcessing;
namespace Client.Game.Cameras
{
public class PostProcessingController
{
@codediodeio
codediodeio / database.rules.json
Last active Jan 16, 2022
Common Database Rules for Firebase
View database.rules.json
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@josefnpat
josefnpat / Makefile
Last active Jul 5, 2020
Love Makefile of Doom
View Makefile
# Copyright 2017 Josef N Patoprsty
#
# 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:
#
# The above copyright notice and this permission notice shall be included in all
@githubutilities
githubutilities / Apple-real-device-debugging.md
Last active Nov 23, 2021
install ipa using command line
View Apple-real-device-debugging.md

Apple Real Devices Debugging

What you need

  • certificate--which tells your devices that Apple trust you
  • a app id
  • a test device
  • a provisioning profile
View GradientAndDirColor.shader
Shader "Custom/yar" {
Properties {
_ColorLow ("Color Low", COLOR) = (1,1,1,1)
_ColorHigh ("Color High", COLOR) = (1,1,1,1)
_yPosLow ("Y Pos Low", Float) = 0
_yPosHigh ("Y Pos High", Float) = 10
_GradientStrength ("Graident Strength", Float) = 1
_EmissiveStrengh ("Emissive Strengh ", Float) = 1
_ColorX ("Color X", COLOR) = (1,1,1,1)
_ColorY ("Color Y", COLOR) = (1,1,1,1)