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
// Match everything inside balancing groups ['<' and '>'] (Variables) and ['{' and '}'] (Macros) | |
// ex: <This is A Variable> and {This is a macro} | |
// http://goo.gl/Rjo6Ih | |
public static string PatternBuilder(char open, char close) | |
{ | |
return $"(((?<open>{open})[^{open}]*)+([^{open}]*(?<close-open>{close}))+).*?(?(open)(?!))"; | |
} | |
public static string caretPattern => PatternBuilder('<', '>'); |
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
Turn off time syncing: | |
vboxmanage setextradata [VMname] "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1" | |
Turn it back on: | |
vboxmanage setextradata [VMname] "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "0" |
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
[gui] | |
[user] | |
name = Nicholas LaRosa | |
email = [email protected] | |
[core] | |
autocrlf = false | |
safecrlf = true | |
excludesfile = C:\\Users\\nicholas.larosa\\Documents\\gitignore_global.txt | |
filemode = false | |
whitespace = fix |
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
namespace Program | |
{ | |
public abstract class BaseClass | |
{ | |
public BaseClass { | |
// Constructor | |
} | |
} | |
} |
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
// Updates all child tree nodes recursively. | |
private void CheckAllChildNodes(TreeNode treeNode, bool nodeChecked) | |
{ | |
foreach (TreeNode node in treeNode.Nodes) | |
{ | |
node.Checked = nodeChecked; | |
if (node.Nodes.Count > 0) | |
{ | |
// If the current node has child nodes, call the CheckAllChildsNodes method recursively. |
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
using System; | |
using System.Windows.Forms; | |
public class MyTreeView : TreeView { | |
protected override void WndProc(ref Message m) { | |
// Suppress WM_LBUTTONDBLCLK | |
if (m.Msg == 0x203) { m.Result = IntPtr.Zero; } | |
else base.WndProc(ref m); | |
} | |
} |
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
import Graphics.Element (..) | |
import Graphics.Input.Field as Field | |
import Signal | |
import List (head) | |
import Char (..) | |
import String (length, slice, toList, indexes, cons, map) | |
import Text (plainText) | |
content : Signal.Channel Field.Content | |
content = |
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
<div ng-app="codepen"> | |
<a href="" class="blue">Not Yellow</a> | |
<br> | |
<a href="" class="overridden">Yellowish</a> | |
</div> |
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
(function (app) { | |
'use strict'; | |
app.config(function($urlRouterProvider, $stateProvider) { | |
$stateProvider | |
.state('landing', { | |
url: '/landing', | |
templateUrl: '/states/landing/landing.html' | |
}); |
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
/* | |
* Style tweaks | |
* -------------------------------------------------- | |
*/ | |
html, | |
body { | |
overflow-x: hidden; /* Prevent scroll on narrow devices */ | |
} | |
body { |