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
var da = new DataSet(); | |
var adapter = new OleDbDataAdapter(); | |
var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); | |
path += "asdf_5.xlsx"; | |
var connectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + path | |
+ @";Extended Properties=""Excel 12.0 Macro;HDR=YES;ImportMixedTypes=Text;TypeGuessRow=0"""; | |
var conn = new OleDbConnection(connectionString); |
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
module CubeSolver | |
// Represent the state of a Rubik's Cube | |
type CubeState = | |
{ EdgePositions : int array | |
EdgeFlips : int array | |
CornerPositions : int array | |
CornerTwists : int array } |
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
type event = { text : string; minutes: double } | |
type exercise = { | |
text : string | |
setNum : int | |
setupTime : double | |
setTime : double | |
restTime : double | |
} |
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 abstract class PersistentConnection | |
{ | |
public virtual void Initialize(IDependencyResolver resolver); | |
public bool Authorize(IRequest request); | |
protected virtual TraceSource Trace { get; } } | |
protected IProtectedData ProtectedData { get; private set; } |
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
open System | |
type Choice = Rock | Scissors | Paper | |
type RoundResult = WinRound | TieRound | LoseRound | |
let roundResult = function | |
| Rock, Rock | Scissors, Scissors | Paper, Paper -> TieRound | |
| Rock, Scissors | Scissors, Paper | Paper, Rock -> WinRound | |
| Rock, Paper | Scissors, Rock | Paper, Scissors -> LoseRound |
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
open System | |
let exampleLevel = [ | |
" #####" | |
" # #" | |
" #$ #" | |
" ### $##" | |
" # $ $ #" | |
"### # ## # ######" | |
"# # ## ##### ..#" |
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
/* | |
Add these: | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
*/ | |
void Main() | |
{ | |
WriteDeltas(new Foo { X = 123, Y = DateTime.Today, Z = null }, |
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
html, | |
body { | |
font-size: 16px; | |
} | |
.main-container { | |
display: flex; | |
width: 100%; | |
height: 100%; | |
justify-content: center; |
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
html, | |
body { | |
font-size: 16px; | |
} | |
.main-container { | |
display: flex; | |
width: 100%; | |
height: 100%; | |
justify-content: center; |
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
- ![](http://i.imgur.com/UAAlIEX.jpg) | |
- Go slow and look ahead | |
- Move anything forward | |
- Everyone is doing the best they can | |
- If you ask for money, you get advice. If you ask for advice, you get money | |
- Tell stories, not plans | |
- Doing is better than perfect | |
- If it's not impossible, there must be a way to do it | |
- It's the scary choices that end up being the most worthwhile | |
- The deepest principle in human nature is the craving to be appreciated |
OlderNewer