View loader.rb
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 gem_available? | |
if @version == nil | |
Gem.available? @gem_name | |
else | |
Gem.available? @gem_name, @version | |
end | |
end |
View gist:902303
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
Server Error in '/' Application. | |
The profiler was not initialize properly, did you forgot to call Profiler.Initialize()? | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
Exception Details: System.InvalidOperationException: The profiler was not initialize properly, did you forgot to call Profiler.Initialize()? | |
Source Error: |
View LinqPadPrecompiler.cs
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
// Written by Michael Carter (kiliman@systemex.net) | |
// Copyright (c) 2012. All rights reserved. | |
// | |
// Redistribution and use of this code WITHOUT MODIFICATIONS are permitted provided that | |
// the following conditions are met: | |
// 1. Redistributions must retain the above copyright notice, this list of conditions | |
// and the following disclaimer. | |
// 2. Neither the name of an author nor the names of the contributors may be used | |
// to endorse or promote products derived from this software without specific | |
// prior written permission. |
View AllMethods.cs
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 class Chat : Hub | |
{ | |
public void Send(string message) | |
{ | |
// Call addMessage on everyone | |
Clients.All.addMessage(message); | |
// Call addMessage on everyone except the caller | |
Clients.Others.addMessage(message); |
View Index.cs
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 class IndexResult | |
{ | |
[PrimaryKey, AutoIncrement] | |
public int Id { get; set; } | |
[Indexed] | |
public string DocumentId { get; set; } | |
} | |
public class PersonIndex : IndexResult |
View .SyncIgnore
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
# .SyncIgnore is a UTF-8 encoded .txt file that helps you specify single files, paths and rules | |
# for ignoring during the synchronization job. It supports "?" and "*" wildcard symbols. | |
# | |
# | |
# OS generated files # | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes |
View packages.config
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
<packages> | |
<package id="DotNetOpenAuth.AspNet" version="4.1.4.12333" /> | |
<package id="DotNetOpenAuth.Core" version="4.1.4.12333" /> | |
<package id="DotNetOpenAuth.OAuth.Consumer" version="4.1.4.12333" /> | |
<package id="DotNetOpenAuth.OAuth.Core" version="4.1.4.12333" /> | |
<package id="DotNetOpenAuth.OpenId.Core" version="4.1.4.12333" /> | |
<package id="DotNetOpenAuth.OpenId.RelyingParty" version="4.1.4.12333" /> | |
<package id="EntityFramework" version="5.0.0" /> | |
<package id="Facebook" version="6.1.4" /> | |
<package id="jQuery" version="1.8.2" /> |
View DynamicFragmentView.cs
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 override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) | |
{ | |
var tabConfig = ViewModel.TabConfig; | |
var tabId = tabConfig["id"].ToString(); | |
var ignored = base.OnCreateView(inflater, container, savedInstanceState); | |
_scrollView = new ScrollView(Activity); | |
var layout = BuildLayout(inflater, tabConfig); |
View gist:0be7b26d827c63cb5a95846c6a5a36c7
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
Verifying that "kiliman.id" is my Blockstack ID. https://onename.com/kiliman |
View FirebasePushIDGenerator.cs
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
void Main() | |
{ | |
var pushId = FirebasePushIDGenerator.GeneratePushID(); | |
Console.WriteLine(pushId); | |
Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
Thread.Sleep(5); | |
Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); | |
Thread.Sleep(5); | |
Console.WriteLine(FirebasePushIDGenerator.GeneratePushID()); |
OlderNewer