This file contains hidden or 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
# Build, anonymize config, deploy, zip, commit, push in one shot | |
param ( | |
[string]$solution = "OracleDashboard.sln", | |
[string]$zipname = "OracleDashboard.zip", | |
[string]$compressor = "c:\Program Files\7-Zip\7z.exe", | |
[string]$folder = "OracleDashboard", | |
[string]$deployPath = "..\Binary", | |
[string]$commitFrom = "..", | |
[Parameter(Mandatory=$true)][string]$comment | |
) |
This file contains hidden or 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
<!--Ref: http://outofmemory.azurewebsites.net/configure-npgsql-on-windows/ --> | |
<?xml version="1.0" encoding="UTF-8" ?> | |
<configuration> | |
<connectionStrings> | |
<add name="hockeydb" | |
connectionString="Server=127.0.0.1;Port=5432;Database=hockeydb;User Id=demo;Password=demo;" | |
providerName="Npgsql" | |
/> | |
</connectionStrings> | |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.Framework.Runtime; | |
namespace SomeApp | |
{ | |
public class TypeFinder | |
{ |
This file contains hidden or 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
<Project> | |
<!-- TARGET FRAMEWORKS --> | |
<ItemGroup Condition="'$(TargetFramework)'=='netstandard1.6'"> | |
<PackageReference Include="NETStandard.Library" Version="1.6.1" /> | |
</ItemGroup> | |
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp1.1'"> | |
<PackageReference Include="Microsoft.NETCore.App" Version="1.1.0" /> | |
</ItemGroup> | |
<!-- /TARGET FRAMEWORKS --> |
This file contains hidden or 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
<Query Kind="Program" /> | |
private string[] projectExtensionExclusions = new[] { ".vdproj", ".ndproj", ".wdproj", ".shfbproj" }; | |
private string rootFolder = @"C:\Users\Pascal\Dev\MyProject"; | |
void Main() | |
{ | |
LoadAllProjects(); | |
LoadAllPackagesConfig(); | |
GenerateDGML(Path.Combine(rootFolder, "Dependencies.dgml")); |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Diagnostics; | |
Console.WriteLine("Cleaning current folder and subfolders"); | |
Console.WriteLine(); | |
var toDelete = new [] { "bin","obj","bld","Backup","_UpgradeReport_Files","Debug","Release,ipch","*.mdf","*.ldf","*.suo","Packages","bower_components","node_modules","lib",".vs","artifacts" }; |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# | |
# Hack to use Android phone as barcode scanner for pc. | |
# | |
# Installation and setup: | |
# * Enable usb debugging on your Android phone | |
# * Make sure you have an Android SDK installed | |
# * Make sure xdotool is installed (apt-get has it) http://www.semicomplete.com/projects/xdotool/ | |
# * Build and install https://github.com/majido/clipper | |
# * Start service: `adb shell su -c \'am startservice ca.zgrs.clipper/.ClipboardService\'` |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title></title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<h2>Hello from outside the Shadow DOM!</h2> | |
This file contains hidden or 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
var compilation = CSharpCompilation.Create("C") | |
.AddReferences(MetadataReference.CreateFromFile(pathToAssembly)); | |
foreach (var type in | |
from assemblySymbol in compilation.SourceModule.ReferencedAssemblySymbols | |
from module in assemblySymbol.Modules | |
from n in module.GlobalNamespace.GetMembers() | |
where n.IsNamespace | |
from type in n.GetTypeMembers() | |
select type) |
This file contains hidden or 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 System.Net; | |
using System.Web.Mvc; | |
namespace Fabrik.Common.Web | |
{ | |
public class HijaxAttribute : ActionFilterAttribute | |
{ | |
public override void OnActionExecuting(ActionExecutingContext filterContext) | |
{ | |
if (CanBeHijaxed(filterContext)) |