void main(...) {
if(a && b && c) {
code_1 - 400 lines
}
if(d && e && f) {
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
in vec2 v_texcoord; // texture coords | |
in vec3 v_normal; // normal | |
in vec3 v_binormal; // binormal (for TBN basis calc) | |
in vec3 v_pos; // pixel view space position | |
out vec4 color; | |
layout(std140) uniform Transforms | |
{ | |
mat4x4 world_matrix; // object's world position |
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
// dataTables.js is great! But it requires you to have "good" tables in | |
// the first place. If your table has an uneven number of columns per | |
// row, and you're getting the dreaded "Cannot read property | |
// 'mData' of undefined" this'll fix it. If you're missing a thead or | |
// tbody you'll get that error too - this won't fix that! | |
$(document).ready(function() { | |
// We need to make sure every row in our table has the same number of columns. | |
// Otherwise dataTable doesn't work. | |
$('table').each(function(i, elm) { |
The general goal of your codebase should be to make it as easy to understand as possible.
Easy to understand results in:
- less bugs due to insufficient knowledge (because over time you might forget some parts)
- implicit understanding without the need for comments (less time spent reading comments)
- no need for documentation or intruduction to the project, since it's faster to just look at the code
- in case everyone dies, rookie can just come in and easily continue on
http://esoacademy.com/damage-in-eso/ https://www.reddit.com/r/elderscrollsonline/comments/3ov0n4/formulas_for_max_statsweaponspell_damage_etc/ http://elderscrollsonline.wiki.fextralife.com/Stats http://elderscrollsonline.wiki.fextralife.com/Mundus+Stones
The Restoration staff's basic attack is weak compared to the Destruction staff, but it has one critical advantage: its heavy attack restores 10% of your magicka. This makes the Resto staff the number one choice for magicka-focused characters, even if you don't plan to heal. It also has great survivability skills like Regeneration and Blessing of Protection.
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; | |
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] | |
public class DependencyAttribute : Attribute | |
{ | |
} |
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 sealed class Transform : IEnumerable, IEnumerable<Transform> | |
{ | |
private sealed class Enumerator : IEnumerator, IEnumerator<Transform> | |
{ | |
private Transform outer; | |
private int currentIndex = -1; | |
object IEnumerator.Current | |
{ | |
get |
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
// #define USE_VEXE_FAST_REFLECTION // download it at https://github.com/vexe/Fast.Reflection increases reflection invoke performance significantly | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Text; | |
using System.Reflection; | |
#if USE_VEXE_FAST_REFLECTION |
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; | |
using System.IO; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using Ionic.Zip; |