C# 1.0 (Visual Studio.NET)
- Classes
- Structs
- Interfaces
- Events
- Properties
# Copyright (c) 2014-2016, Ruslan Baratov, Sumedh Ghaisas | |
# All rights reserved. | |
cmake_minimum_required(VERSION 3.0) | |
include(hunter_internal_error) | |
include(hunter_status_debug) | |
# Set next variables to the current scope: | |
# * HUNTER_MSVC_VERSION - version of Visual Studio. Used to create VS*COMNTOOLS |
namespace Analogy | |
{ | |
/// <summary> | |
/// This example shows that a library that needs access to target .NET Standard 1.3 | |
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
/// </summary>INetCoreApp10 | |
class Example1 | |
{ | |
public void Net45Application(INetFramework45 platform) |
public class LimitedConcurrencyLevelTaskScheduler : TaskScheduler | |
{ | |
[ThreadStatic] | |
private static bool _currentThreadIsProcessingItems; | |
private readonly LinkedList<Task> _tasks = new LinkedList<Task>(); | |
private readonly int _maxDegreeOfParallelism; | |
private int _delegatesQueuedOrRunning = 0; |
using System.Linq; | |
namespace System.Collections.Generic | |
{ | |
public static class NestedCollectionsExtentions | |
{ | |
public static IEnumerable<T> Traverse<T>(this T node, Func<T, IEnumerable<T>> childrenFor) | |
{ | |
yield return node; | |
IEnumerable<T> enumerable = childrenFor(node); |
wget http://software.virtualmin.com/gpl/scripts/install.sh | |
chmod +x ./install.sh | |
bash ./install.sh --minimal --bundle LAMP |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\WSL] | |
@="Bash Prompt Here" | |
"Icon"="%USERPROFILE%\\AppData\\Local\\lxss\\bash.ico" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\WSL\command] | |
@="cmd.exe /c pushd \"%V\" && bash.exe" |
<!DOCTYPE html> | |
<html ng-app="test"> | |
<head> | |
<title>Performance Comparison for Knockout, Angular and React</title> | |
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.css" rel="stylesheet" /> | |
<style type="text/css"> | |
* { box-sizing:border-box; } | |
body { padding:30px 0; } | |
h2 { margin:0; margin-bottom:25px; } | |
h3 { margin:0; padding:0; margin-bottom:12px; } |
git clone https://gist.github.com/6780d7cc0cabb1b4d6c8.git
$ npm install # maybe npm start will take care of it but just in case
$ npm start && open out.png
> [email protected] start /Users/bsergean/src/offscreen_sample
in vec2 v_texcoord; // texture coords | |
in vec3 v_normal; // normal | |
in vec3 v_binormal; // binormal (for TBN basis calc) | |
in vec3 v_pos; // pixel view space position | |
out vec4 color; | |
layout(std140) uniform Transforms | |
{ | |
mat4x4 world_matrix; // object's world position |