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
OK, so technically within the class you can still access the variable by calling getMyProperty or setMyProperty instead of via the property, but you still encapsulate the functionality with the getting and setting. |
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
#!/bin/sh -x | |
./testdata-script.sh "cs" "mono KeyczarTool.exe" | |
# python requires http://code.google.com/r/jtuley-python-collisions/ | |
./testdata-script.sh "py" "python keyczar/keyczart.py" | |
# java requires http://code.google.com/r/jtuley-java-usekey-interop/ | |
./testdata-script.sh "j" "java -jar KeyczarTool.jar" |
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 off | |
IF %1.==. GOTO WrongArgs | |
..\.nuget\nuget.exe pack ..\%1\%1.csproj -Build -Properties Configuration=Release -Symbols | |
GOTO:EOF | |
:WrongArgs | |
ECHO "create-nuget <projectname>" |
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 ImpromptuInterface; | |
using Newtonsoft.Json.Linq; | |
/* | |
* This example was inspired by | |
* "Serialization is Lossy" | |
* http://kellabyte.com/2013/05/02/serialization-is-lossy/ | |
*/ | |
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.Linq | |
[<EntryPoint>] | |
let main argv = | |
let counter = List.fold (fun (a,c,g,t) x -> match x with | |
| 'A' -> (a+1, c, g, t ) | |
| 'C' -> (a, c+1, g, t ) | |
| 'G' -> (a, c, g+1, t ) | |
| 'T' -> (a, c, g, t+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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace AzureTableStorage.Tests | |
{ | |
// Start/stop azure storage emulator from code: |
(The best SQL database)
Best bet is to use http://postgresapp.com/ .
Make sure to set up your path once it's installed:
- Run
atom ~/.bash_profile
.
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
#!/usr/bin/env dotnet-script | |
/* | |
* This work (haveibeenpwnded.csx by James Tuley), | |
* identified by James Tuley, is free of known copyright restrictions | |
* Source: https://gist.github.com/jbtule/7dab1a1031590209bdcfac88ee71cb2b | |
* http://creativecommons.org/publicdomain/mark/1.0/ | |
* | |
* This script uses the Troy Hunt's HaveIBeenPwned.com range api, to search for passwords, | |
* without revealing what you are searching for. | |
* |
OlderNewer