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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: gitlfsserver | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
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
<!-- | |
Full is your viewmodel containing the whole of your content (whatever control, here as an example an image) | |
Part is your viewmodel containing the area to crop | |
Part has a clipping rect, and 2 offset (OffsetX and OffsetY) why are basicaly -Rect.X and -Rect.Y. This puts the cropped part | |
on the top left of the grid and allow natural clipping through its render | |
protip : surround with a ViewBox if the size needs to be fluid in your UI | |
--> | |
<Grid Width="{Binding Part.Rect.Width}" Height="{Binding Part.Rect.Height}"> | |
<Grid Width="{Binding Full.Width}" Height="{Binding Full.Height}"> |
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
using Windows.UI.Input.Inking; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
public class BindableInkCanvas : InkCanvas | |
{ | |
public static readonly DependencyProperty StrokesProperty = DependencyProperty.RegisterAttached( | |
"Strokes", | |
typeof(InkStrokeContainer), | |
typeof(BindableInkCanvas), |
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
#import "ViewController.h" | |
@interface ViewController () | |
@end | |
@implementation ViewController | |
{ | |
EAGLContext* context; | |
GLuint vertexArray; // our VAO |
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
using UnityEngine; | |
using System.Collections; | |
public delegate void MetronomeEvent(Metronome metronome); | |
public class Metronome : MonoBehaviour { | |
public int Base; | |
public int Step; | |
public float BPM; | |
public int CurrentStep = 1; |
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
require 'json' | |
class IngeServer | |
def call(env) | |
@path = env['PATH_INFO'] | |
@request = Rack::Request.new(env) | |
self.router | |
end |