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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=$HOME/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.com/install.sh | sh |
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
package org.teachingkidsprogramming.section05recursion; | |
import org.teachingextensions.logo.Tortoise; | |
public class RecursiveSquare | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
Tortoise.setSpeed(10); | |
double length = 100.0; |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
choco install googlechrome | |
Install-WindowsUpdate | |
Set-ExecutionPolicy -Force Unrestricted |
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> | |
<head> | |
<title>AngularJS Tutorials</title> | |
<link rel="stylesheet" href="//cdn.jsdelivr.net/foundation/5.4.7/css/foundation.css"> | |
</head> | |
<body> | |
<div ng-app="myApp"> | |
<!-- we've replaced the use of $scope with the preferred "controller as" syntax. see: http://toddmotto.com/digging-into-angulars-controller-as-syntax/--> |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
choco install googlechrome | |
choco install sublimetext2 | |
choco install console2 | |
choco install sourcecodepro | |
choco install githubforwindows | |
choco install tortoisemerge | |
choco install pscx |
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
//1) Starting code... | |
Color color; | |
if (branchLength == 10) { | |
color = PenColors.Greens.Lime; | |
} else if (branchLength == 20) { |
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 static async Task<string> CreateHash(Stream stream) | |
{ | |
byte[] b; | |
using (var ctx = new System.Security.Cryptography.SHA256Managed()) | |
{ | |
var input = await stream.ReadDataAsync(); | |
b = ctx.ComputeHash(input); | |
} |
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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
choco install VisualStudio2013Ultimate | |
choco install googlechrome | |
choco install sublimetext2 | |
choco install console2 | |
choco install sourcecodepro | |
choco install resharper | |
choco install stylecop | |
choco install git-credential-winstore |
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
private static void VerifyConfig(string path, Action<Configuration> action) | |
{ | |
using (var t = new TempFile(Path.GetRandomFileName())) | |
{ | |
File.Copy(path, t.File.FullName, true); | |
var fileMap = new ExeConfigurationFileMap { ExeConfigFilename = t.File.FullName }; | |
var exeConfig = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None); | |
action.Invoke(exeConfig); | |
var config = File.ReadAllText(exeConfig.FilePath); | |
Approvals.Verify(config); |
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
// Note: Connection string must include the following option: Allow User Variables=True | |
using System; | |
using System.Data.Common; | |
using System.Linq; | |
using ApprovalUtilities.Persistence.Database; | |
using MySql.Data.MySqlClient; | |
public class MySqlCommandAdapter : IDatabaseToExecuteableQueryAdaptor |