Skip to content

Instantly share code, notes, and snippets.

View omares's full-sized avatar
💭
🚀

Ota Mares omares

💭
🚀
View GitHub Profile
@omares
omares / keybase.md
Last active January 4, 2020 22:43
keybase

Keybase proof

I hereby claim:

  • I am omares on github.
  • I am omares (https://keybase.io/omares) on keybase.
  • I have a public key ASB07J2NJHGfcgZMJzQHWnyeUQvWF55gjYTuAzJCgIsQ5Ao

To claim this, I am signing this object:

@omares
omares / demo.css
Last active March 14, 2019 00:13
glidejs/glide demos
body {
background-color: #05070b;
overflow-x: hidden;
margin: 0;
padding: 30px;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
color: white;
}
.heading--h1, .heading--h2, .heading--h3, .heading--h4, .heading--h5, .heading--h6, h1, h2, h3, h4, h5, h6 {
# zsh plugins managed via https://github.com/zdharma/zplugin
# https://github.com/zsh-users/zsh-completions
zplugin ice wait'0' blockf
zplugin load zsh-users/zsh-completions
# https://github.com/MichaelAquilina/zsh-you-should-use
zplugin ice wait'0' pick'you-should-use.plugin.zsh'
zplugin load MichaelAquilina/zsh-you-should-use
scan.Click += async (sender, e) => {
var result = await scanner.Scan();
}
// SomeClass is stored as typeof in a var
Func<SomeClass> factory = () => Container.GetInstance<SomeClass>();
Container.Register<Lazy<SomeClass>>(() => new Lazy<SomeClass>(factory));
var t = typeof(INavigateHere<>).GetTypeInfo();
var test = from type in assembly.DefinedTypes
where t.IsAssignableFrom(type)
select type;
private TypeInfo getPageTypeForViewModel(INavigatableViewModel viewModel)
{
// hier will er ein cast auf TypeInfo
return from type in assembly.DefinedTypes
where type.GetCustomAttribute<ViewForAttribute>()?.ViewModelType == viewModel.GetType()
select type;
}
@omares
omares / unittest.csproj
Last active August 29, 2015 14:21
csproj file for reactiveui unit tests
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectTypeGuids>{A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectGuid>{AE49A030-178E-485A-8683-3ACE79E091FE}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>RebuyApp.ReactiveTests</RootNamespace>
<MonoMacResourcePrefix>Resources</MonoMacResourcePrefix>
[27-May-2014 14:10:18] WARNING: [pool rebuy] child 3963 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'test exception' in /foo/htdocs/index.php:4"
file { "/etc":
backup => true,
ensure => "present",
owner => "root",
group => "root",
mode => 0644,
recurse => true,
source => [
"puppet:///modules/rebuy_sandbox/etc"
]