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
| using System; | |
| using System.Collections.Generic; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| namespace OpenSslCompat | |
| { | |
| /// <summary> | |
| /// Derives a key from a password using an OpenSSL-compatible version of the PBKDF1 algorithm. | |
| /// </summary> |
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
| class Foo { | |
| var val; | |
| property p { | |
| getter { | |
| return val; | |
| } | |
| setter(v) { | |
| this.val = v; | |
| } |
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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <targets> | |
| <target name="coloredConsole" xsi:type="ColoredConsole" useDefaultRowHighlightingRules="false" | |
| layout="${longdate}|${pad:padding=5:inner=${level:uppercase=true}}|${message}" > | |
| <highlight-row condition="level == LogLevel.Debug" foregroundColor="DarkGray" /> | |
| <highlight-row condition="level == LogLevel.Info" foregroundColor="Gray" /> | |
| <highlight-row condition="level == LogLevel.Warn" foregroundColor="Yellow" /> |
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
| // Takes string of Note + Octave | |
| // Example: | |
| // var frequency = getFrequency('C3'); | |
| var getFrequency = function (note) { | |
| var notes = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'], | |
| octave, | |
| keyNumber; | |
| if (note.length === 3) { |
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
| /* | |
| * This work (Modern Encryption of a String C#, by James Tuley), | |
| * identified by James Tuley, is free of known copyright restrictions. | |
| * https://gist.github.com/4336842 | |
| * http://creativecommons.org/publicdomain/mark/1.0/ | |
| */ | |
| using System; | |
| using System.IO; | |
| using System.Text; |
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
| OVERVIEW: LLVM 'Clang' Compiler: http://clang.llvm.org | |
| USAGE: clang -cc1 [options] <inputs> | |
| OPTIONS: | |
| -### Print the commands to run for this compilation | |
| --analyze Run the static analyzer | |
| --migrate Run the migrator | |
| --relocatable-pch Build a relocatable precompiled header | |
| --serialize-diagnostics <value> |
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
| using Microsoft.ConcurrencyVisualizer.Instrumentation; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApplication3 |
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
| /* | |
| File: ExceptionTest.c | |
| Contains: Test code for Mach exception handling. | |
| Written by: DTS | |
| Copyright: Copyright (c) 2006 by Apple Computer, Inc., All Rights Reserved. | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. |
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
| #coding:utf-8 | |
| from __future__ import print_function | |
| import os | |
| import sys | |
| import struct | |
| import math | |
| TAG_TYPE = { | |
| 18:'SCRIPT', | |
| 9:'VIDEO', |
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
| /* | |
| The absence of the C# unsafe keyword and switch does not guarantee code | |
| is type or memory safe. It merely prevents the use of pointer types and | |
| fixed size buffers. | |
| The only thing that can guarantee type and memory safety is | |
| verification and CAS/transparency enforcement. | |
| In particular, the absence of unsafe C# blocks does NOT: |
OlderNewer