Skip to content

Instantly share code, notes, and snippets.

Kiliman kiliman

Block or report user

Report or block kiliman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kiliman
kiliman / style.css
Last active May 1, 2018
Cobalt2 theme on GitHub
View style.css
.highlight pre, .blob-wrapper, .blob-expanded .blob-code, .blob-expanded .blob-num { background-color: #193549 !important; color: #e1efff !important; }
.blob-code-inner, .blob-num, .highlight pre, .blob-wrapper { font-family: "Operator Mono SSm Lig" !important; color: #ffee80 !important; font-size:16px; line-height: 135% !important;}
.blob-num, .blob-expanded .blob-num {color: #aaa !important; }
.blob-code-hunk, .blob-num-hunk, .blob-num-expandable, .blob-code-expandable { background-color: #1E88E5; }
.blob-code-addition, .blob-num-addition { background-color: #005500; }
.blob-code-deletion, .blob-num-deletion { background-color: #550000; }
.pl-c, .pl-e { font-style: italic; }
.pl-k { color: #ff9d00; }
.pl-pds { color: #e1efff; }
.pl-pse { color: #e1efff; }
View sample.txt
// this is a comment
const func = (a, b, c, d, e, f, s, n) => {
if (a++ && b-- || c >= d || e <= f) {
}
if (s === 'string' && n !== 999) {
}
if (a == b && c != d)
a <- b <-- c <== d
a |> b
View FirebasePushIDGenerator.cs
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());
View gist:0be7b26d827c63cb5a95846c6a5a36c7
Verifying that "kiliman.id" is my Blockstack ID. https://onename.com/kiliman
@kiliman
kiliman / DynamicFragmentView.cs
Last active Feb 5, 2016
Dynamic Layout in MvvmCross for Android
View DynamicFragmentView.cs
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);
@kiliman
kiliman / packages.config
Created Apr 24, 2014
Default packages in C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Packages
View packages.config
<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" />
@kiliman
kiliman / .SyncIgnore
Last active Dec 8, 2015
BitTorrent Sync ignore file for WIndows<->Mac Xamarin Development
View .SyncIgnore
# .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
@kiliman
kiliman / Index.cs
Last active Aug 29, 2015
Simple RavenDB clone using SQLite for use in mobile clients.
View Index.cs
public class IndexResult
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
[Indexed]
public string DocumentId { get; set; }
}
public class PersonIndex : IndexResult
View AllMethods.cs
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 LinqPadPrecompiler.cs
// 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.
You can’t perform that action at this time.