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
// Class to be inside the WPF class | |
public static class CustomClass | |
{ | |
public static readonly DependencyProperty TextProperty = DependencyProperty.RegisterAttached( | |
"Text", | |
typeof(string), | |
typeof(CustomClass), | |
new UIPropertyMetadata(default(string))); | |
public static string GetText(DependencyObject obj) |
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 createStore from "redux"; | |
import combineReducers from "redux" | |
const todoItemCategoryAction = { | |
Add: "ADD_TODO", | |
Remove: "REMOVE_TODO", | |
Toggle: "TOGGLE_TODO", | |
ShowAll: "SHOW_ALL", | |
ShowCompleted: "SHOW_COMPLETED", | |
SetVisibilityFilter: "SET_VISIBILITY_FILTER" |
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( var dbCtx = new DataContext()) | |
{ | |
var employeeTrainingResults = dbCtx.ExecuteQuery<EmployeeTrainingResult>( | |
@"@"with SomeTemporaryEmployeeTable(EmployeeID, SkillID, IsQualified) | |
as | |
( | |
select e.ID, jSkill.ID, case when jsQualifications.QualificationID is null then 0 else 1 end | |
from Employee e | |
join Job job on job.EmployeeID = e.ID | |
and job.ID = (select max(ID) from Job |
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
@"with SomeTemporaryEmployeeTable(EmployeeID, SkillID, IsQualified) | |
as | |
( | |
select e.ID, jSkill.ID, case when jsQualifications.QualificationID is null then 0 else 1 end | |
from Employee e | |
join Job job on job.EmployeeID = e.ID | |
and job.ID = (select max(ID) from Job | |
where EmployeeID = job.EmployeeID) | |
join JobGroup jobGroup on jobGroup.ID = job.JobGroupID | |
join JobSkill jSkill on jSkill.JobGroupID = job.JobGroupID |
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
module ImageAnalyzer | |
open System | |
open System.Drawing | |
open Emgu.CV | |
open Emgu.CV.Structure | |
type HistComparisonCategory = | |
| PerfectMatch | |
| CloseMatch //between 75% and 100% |
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
package main; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.sql.Connection; | |
import java.sql.*; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; |
NewerOlder