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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>mount_ntfs_3g</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> | |
<false/> |
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.Linq.Expressions; | |
using System.Reflection; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
namespace FastGetMethodBenchmark | |
{ | |
public class FastGetMethodVsGetMethod | |
{ |
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.Data.Entity; | |
using System.Data.Entity.ModelConfiguration; | |
using System.Data.Entity.ModelConfiguration.Configuration; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using DelegateDecompiler; |
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; | |
using System.Collections.Generic; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Linq; | |
using NUnit.Framework; | |
public class CachingEnumerable<T> : IEnumerable<T>, IDisposable | |
{ | |
List<T> _cache; |
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
-pascalCase+ | |
-nativeTypeSystem | |
-organizeUsings | |
-separateInterfaceConstants | |
-junitConversion | |
-maxColumns 400 | |
-namespaceMapping org.mozilla.javascript Rhino | |
-fullyQualify Cipher |
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
Compiling the source code.... | |
$mcs main.cs -out:demo.exe 2>&1 | |
main.cs(37,13): warning CS0219: The variable `ids1' is assigned but its value is never used | |
main.cs(40,13): warning CS0219: The variable `ids1' is assigned but its value is never used | |
Compilation succeeded - 2 warning(s) | |
Executing the program.... | |
$mono demo.exe | |
SelectMany method chain : 00:00:00.7027228 | |
SelectMany linq : 00:00:00.6438793 |
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
[].concat( | |
Object.getOwnPropertyNames(Object), | |
Object.getOwnPropertyNames(window) | |
).map(function(x){return {name:x,length:JSFuck.encode(x).length};}) | |
.sort(function(x,y) {return x.length-y.length;}) | |
.forEach(function(x) {console.log(x);}) |
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 class EnumerableEx | |
{ | |
public static bool Any(this IEnumerable e) | |
{ | |
using (var i = enumerable.GetEnumerator()) | |
{ | |
return i.MoveNext(); | |
} | |
} |
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
def using (v, &block) | |
begin | |
block.call | |
ensure | |
v.close unless v.nil? if v.class.method_defined? :close | |
end | |
end | |
class Resource | |
def name () |
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
if (!document.getElementsByClassName) { | |
document.getElementsByClassName = function(search) { | |
var d = document, elements, pattern, i, results = []; | |
if (d.querySelectorAll) { // IE8 | |
return d.querySelectorAll("." + search.replace(/\s+/g, '.')); | |
} | |
if (d.evaluate) { // IE6, IE7 | |
pattern = ".//*[contains(concat(' ', @class, ' '), ' " + search + " ')]"; | |
elements = d.evaluate(pattern, d, null, 0, null); | |
while ((i = elements.iterateNext())) { |
NewerOlder