Skip to content

Instantly share code, notes, and snippets.

@ido-ran
ido-ran / soy-milk.data
Created June 10, 2018 12:21
Triain YOLO to detect soy milk
classes= 1
train = data/soy-milk_train.txt
valid = data/soy-milk_test.txt
names = data/soy-milk.names
backup = backup
@ido-ran
ido-ran / build.gradle
Created January 24, 2018 13:28
Gradle script migrated from Maven assembly plugin
configurations {
deploymentZip
}
/**
* deployment-conf simply package the files in `content` directory in zip file.
* That zip file is later consumed by other module to build the installers.
*/
task packageZip(type: Zip) {
@ido-ran
ido-ran / gist:94e15806085bccc37790f979e4e29c12
Created January 24, 2018 13:27
Maven assemblyDescriptor.xml
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>template</id>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>${project.basedir}</directory>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<configuration>
<finalName>mqm-distribution</finalName>
<descriptors>

Click in the open space to add a node, drag from one node to another to add an edge.
Ctrl-drag a node to move the graph layout.
Click a node or an edge to select it.

When a node is selected: R toggles reflexivity, Delete removes the node.
When an edge is selected: L(eft), R(ight), B(oth) change direction, Delete removes the edge.

To see this example as part of a larger project, check out Modal Logic Playground!

@ido-ran
ido-ran / ProfiledRazorViewEngine.cs
Last active December 17, 2015 21:39
Profiler for Razor View Engine using MiniProfiler
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using StackExchange.Profiling;
namespace MiniProfiler.Razor {
public class ProfiledRazorViewEngine : RazorViewEngine {
@ido-ran
ido-ran / gist:1616572
Created January 15, 2012 17:51
GoWPF 1.3.1.4 Drag and Drop Issue
/* Copyright © Northwoods Software Corporation, 2008-2011. All Rights Reserved. */
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Xml.Linq;
using Northwoods.GoXam;
sdfdsf
kjhkjh