Skip to content

Instantly share code, notes, and snippets.

View jessejjohnson's full-sized avatar

Jesse Johnson jessejjohnson

View GitHub Profile
@osbornm
osbornm / handlebars.tmpl.html
Last active July 10, 2016 02:46
ko.handlebars.js template enigne
<script type="text/x-handlebars-template" id="tree-layout-group">
<li>
<div class="tree-row tree-row-header" data-bind="click: $root.toggleTreeNode">
<div class="tree-row-left">
<hgroup>
<h2><i class="{{groupIconClass}}"></i>{{name}}</h2>
<h3>({{serverCount}})</h3>
</hgroup>
</div>
<div class="tree-row-right">
@onigetoc
onigetoc / bootstrap-wrapper.css
Created December 28, 2015 19:51
Bootstrap wrapper no conflict - Wrap Bootstrap v3.3.6 CSS inside a div with the class .bootstrap-wrapper
.bootstrap-wrapper {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
/*.bootstrap-wrapper body{margin:0}*/
.bootstrap-wrapper article, .bootstrap-wrapper aside, .bootstrap-wrapper details, .bootstrap-wrapper figcaption, .bootstrap-wrapper figure, .bootstrap-wrapper footer, .bootstrap-wrapper header, .bootstrap-wrapper hgroup, .bootstrap-wrapper main, .bootstrap-wrapper menu, .bootstrap-wrapper nav, .bootstrap-wrapper section, .bootstrap-wrapper summary{display:block}
.bootstrap-wrapper audio, .bootstrap-wrapper canvas, .bootstrap-wrapper progress, .bootstrap-wrapper video{display:inline-block;vertical-align:baseline}
.bootstrap-wrapper audio:not([controls]){display:none;height:0}
.bootstrap-wrapper [hidden], .bootstrap-wrapper template{display:none}
.bootstrap-wrapper a{background-color:transparent}
.bootstrap-wrapper a:active, .bootstrap-wrapper a:hover{outline:0}
.bootstrap-wrapper abbr[title]{border-bottom:1px dotted}
.bootstrap-wrapper b, .bootstrap-wrapper strong{font-weigh
@hikalkan
hikalkan / AccountController.cs
Last active March 20, 2020 07:10
User Impersonation for ASP.NET Boilerplate
/* SAMPLE AJAX CALL to this action:
(This is enough since it's automatically redirected to the target tenant's ImpersonateSignIn action)
abp.ajax({
url: abp.appPath + 'Account/Impersonate',
data: JSON.stringify({
tenantId: 1, //Target tenant id (can be null if target user is a host user)
userId: 2 //Target user id
})
using System;
using System.IO;
using System.Linq;
using System.Text;
namespace AbpWebSite.Templates
{
/// <summary>
/// Used to rename a solution
/// </summary>

How To: Setting up ASPNetZero With Modular Application

Preparing AspNetZero Project

  1. Create a github repo "jpy-d360"

    clone the above create repo to working directory

  2. Get the latest version of AspNetZero Binary

    Company name : "JPY" Project name : "Zero"

@AlexMAS
AlexMAS / ProcessAsyncHelper.cs
Last active July 24, 2024 18:39
The right way to run external process in .NET (async version)
using System;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
public static class ProcessAsyncHelper
{
public static async Task<ProcessResult> ExecuteShellCommand(string command, string arguments, int timeout)
{
var result = new ProcessResult();
@macbookandrew
macbookandrew / findStyles.js
Last active March 30, 2024 15:24
List unique CSS properties for all DOM elements
/**
* List unique CSS properties for all DOM elements
* Initially created to list unique font stacks on a page
* @see {@link http://stackoverflow.com/a/35022690/ Inspired by this StackOverflow answer}
*
* @see {@link https://gist.github.com/macbookandrew/f33dbbc0aa582d0515919dc5fb95c00a/ URL for this file}
*
* @author AndrewRMinion Design (https://andrewrminion.com)
* @version 1.1
*

How To: Setting up ASPNetZero With Modular Application

Preparing AspNetZero Project

  1. Create a github repo "jpy-d360"

    clone the above create repo to working directory

  2. Get the latest version of AspNetZero Binary

    Company name : "JPY" Project name : "Zero"

@X-KG-X
X-KG-X / gist:e628cb88b2ee0825c8413c47643bf919
Last active November 16, 2019 07:21
Kushal Gurung Resume

KUSHAL GURUNG

Renton, Washington 98055 | (320)237-6783 | xushalx@gmail.com | https://www.linkedin.com/in/kushalx/

SUMMARY

I am passionate about using Data and Technology to solve problems small and large. As a military veteran I have ample experience working in teams of varying sizes to accomplish the Mission. As a professional I have always taken complete ownership of my responsibilities with a positive attitude.

Fullstack Development | MCSE: Data Management and Analytics | Secret Security Clearance

[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)