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"?> | |
| <manifest> | |
| <remote name="private" fetch="git://github.com/"/> | |
| <project path="vendor/broadcom" name="koush/proprietary_vendor_broadcom" remote="private" /> | |
| <project path="vendor/bn" name="koush/proprietary_vendor_bn" remote="private" /> | |
| <project path="vendor/htc" name="koush/proprietary_vendor_htc" remote="private" /> | |
| <project path="vendor/imgtec" name="koush/proprietary_vendor_imgtec" remote="private" /> | |
| <project path="vendor/google" name="koush/proprietary_vendor_google" remote="private" revision="gh-pages" /> | |
| <project path="vendor/lge" name="koush/proprietary_vendor_lge" remote="private" /> |
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
| var config = new IConfiguration() {Path = "meh", Root = "foo" }; // where IConfiguration is a Interface |
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 GenricCmdLineParser | |
| { | |
| private Dictionary<string, Action<string>> Entries = new Dictionary<string, Action<string>>(); | |
| protected void Register(string arg, Action<string> valueSetter) | |
| { | |
| if (!Entries.ContainsKey(arg)) | |
| Entries.Add(arg.ToLowerInvariant(), valueSetter); | |
| } |
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
| x= 2547, y = 8, x * 10 ^ ((y - 1) - (int(log10(x))) |
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 class EnumerableExtensions | |
| { | |
| public static BlockingCollection<T> CopyToBlockingCollectionAsync<T>(this IEnumerable<T> source) | |
| { | |
| var collection = new BlockingCollection<T>(); | |
| Task.Factory.StartNew(() => | |
| { | |
| foreach (var item in source) | |
| { |
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.Globalization; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program |
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
| struct DataStructures_Trackpoint (*foo)(struct DataStructures_Trackpoint); | |
| if ( !((*foo)(i1).alt == 100) ) | |
| { | |
| (*__failures)++;; | |
| printf("$$FAILED: [1;31m***FAILED***[0m ("); | |
| printf("testID=%i",0); | |
| printf(") @FunctionPointers:testLambdaProcessing:0#6864902200221979870\n"); | |
| } |
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
| boolean hasNotificationAccess() | |
| { | |
| ContentResolver contentResolver = this.getContentResolver(); | |
| String enabledNotificationListeners = Settings.Secure.getString(contentResolver, "enabled_notification_listeners"); | |
| String packageName = this.getPackageName(); | |
| // check to see if the enabledNotificationListeners String contains our package name | |
| return !(enabledNotificationListeners == null || !enabledNotificationListeners.contains(packageName)); | |
| } |
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 logv.http; | |
| using logv.ws.core; | |
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Threading.Tasks; | |
| using MongoDB.Bson; | |
| using logv.ws.core.data; | |
| namespace logv.host | |
| { |
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
| wget https://opscode-omnibus-packages.s3.amazonaws.com/debian/6/x86_64/chef_11.16.4-1_amd64.deb [17:22:03] | |
| --2014-10-24 17:22:04-- https://opscode-omnibus-packages.s3.amazonaws.com/debian/6/x86_64/chef_11.16.4-1_amd64.deb | |
| Resolving opscode-omnibus-packages.s3.amazonaws.com... 54.231.16.25 | |
| Connecting to opscode-omnibus-packages.s3.amazonaws.com|54.231.16.25|:443... connected. | |
| HTTP request sent, awaiting response... 200 OK | |
| Length: 31437864 (30M) [application/x-debian-package] | |
| Saving to: 'chef_11.16.4-1_amd64.deb' | |
| 100%[======================================================================================================================================================================================================================================>] 31,437,864 2.27MB/s in 21s |
OlderNewer