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.Collections.Generic; | |
using System.Linq; | |
public class Program | |
{ | |
public void Main() | |
{ | |
var items = new List<WeightedItem> { | |
new WeightedItem { Name = "Chicken", Weight = 1 }, |
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
/* | |
Almost necessary for 4K monitors. | |
Credit - https://www.deviantart.com/handofra--/art/Modern-for-Launchy-368677286 | |
*/ | |
/* Base */ | |
#launchy { | |
background-color: #161616; | |
qproperty-geometry: rect(0 0 880 280); | |
} |
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
setlocal ENABLEDELAYEDEXPANSION | |
set ssh_key_home=%HOME%\.ssh\ | |
set pageant_key_wildcard=*.ppk | |
echo Gathering keys matching %pageant_key_wildcard% in ^ | |
%ssh_key_home% | |
rem Check if pageant is running | |
for /f "tokens=2 delims=," %%F in ('tasklist /nh /fi "imagename eq PAGEANT.EXE" /fo csv') do ( |
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
React Native | |
- Uses the component model, which means no finding elements | |
- Has both live and hot reload. Hot reload maintains state | |
- You can *skip* the app store process. Build the .jsbundle locally, deploy to OTA users, and user apps update on the spot | |
The Scaling Myth | |
- The Tyranny of Structurelessness -> look it up | |
- Conway's Law - Code org/structure ends up resembling team org/structure | |
C#/F# .NET Core |
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
namespace WorkflowActions | |
{ | |
using System; | |
internal class Program | |
{ | |
private static void Main() | |
{ | |
const string workflowName = "Ftp"; |
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
Code Camp Notes | |
- Angular vs React -> Bill Wolff (speaker) beliefs | |
- Angular is better at forms over data for business apps | |
- React can be faster when utilized correctly | |
- Wanna see Google search trends? https://trends.google.com/trends/ | |
- SmarterASP.net (hosting provider) sucks | |
- They no longer have phone support |
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
import java.util.function.Predicate; | |
import java.util.HashMap; | |
public class DefuseBomb { | |
private HashMap<Wire, Predicate<Wire>> explosiveWireCutSequences = | |
new HashMap<Wire, Predicate<Wire>>(); | |
private enum Wire { white, black, purple, red, green, orange }; | |
public DefuseBomb(String[] wireCuts) { | |
setExplosiveWireCutSequences(); |
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
// C#6 feature: Auto-property Initializer | |
public Guid Id { get; private set; } = Guid.NewGuid(); | |
// C#6 feature: Auto-property Initializer (Getter only) | |
public Guid Id { get; } = Guid.NewGuid(); | |
// C#6 feature: String Interpolation | |
string test = $"{this.FirstName} {this.LastName} ({this.Id})"; | |
FormattableString test2 = $"{this.FirstName} {this.LastName} ({this.Id})"; | |
Console.WriteLine(test2.ArgumentCount + " " + test2.Format); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Module</title> | |
</head> | |
<body> | |
<div id="messenger">null</div> | |
</body> |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
internal static class RecordParser | |
{ | |
/// <summary> | |
/// Parses a fixed width record on the endpoints supplied. | |
/// </summary> | |
/// <param name="record">The fixed width record to parse</param> |
NewerOlder