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
| 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 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
| //1) Starting code... | |
| Color color; | |
| if (branchLength == 10) { | |
| color = PenColors.Greens.Lime; | |
| } else if (branchLength == 20) { |
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
| 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 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
| <!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 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
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
| choco install googlechrome | |
| Install-WindowsUpdate | |
| Set-ExecutionPolicy -Force Unrestricted |
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
| 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 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
| 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 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
| from subprocess import call | |
| from approvaltests.Reporter import Reporter | |
| class TortoiseTextReporter(Reporter): | |
| @staticmethod | |
| def get_command(approved_path, received_path): | |
| return ['C:\\Program Files\\TortoiseSVN\\bin\\tortoisemerge.exe', received_path, approved_path] |
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
| # http://boxstarter.org/package/url? | |
| Disable-BingSearch | |
| Disable-GameBarTips | |
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
| Enable-WindowsOptionalFeature -Online -FeatureName containers ?All | |
| choco install Microsoft-Hyper-V-All -source windowsFeatures |
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
| url = "http://www.pythonchallenge.com/pc/def/%s.html" | |
| print(url % 2**38) |