Skip to content

Instantly share code, notes, and snippets.

@Balder1840
Balder1840 / ChromeAppDownloader.py
Created January 17, 2016 15:37 — forked from arulrajnet/ChromeAppDownloader.py
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
# -*- coding: utf-8 -*-
"""
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
Referred from http://chrome-extension-downloader.com/how-does-it-work.php
"""
from __future__ import division
import argparse
import requests
@Balder1840
Balder1840 / Sublime Text 3 Build 3103 License Key - CRACK
Created May 2, 2016 16:56
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@Balder1840
Balder1840 / Parser.js
Created February 8, 2017 15:12 — forked from Saul-Mirone/MVVM.js
A simple mvvm
class Register {
constructor() {
this.routes = []
}
regist(obj, k, fn) {
const _i = this.routes.find(function(el) {
if((el.key === k || el.key.toString() === k.toString())
&& Object.is(el.obj, obj)) {
return el
@Balder1840
Balder1840 / git-hosting-apache.conf
Created March 12, 2017 08:55 — forked from karmi/git-hosting-apache.conf
Configuration for hosting Git repositories with Apache 2.x
# ----------------------------------------------------------
# Configuration for hosting Git repositories with Apache 2.x
# ----------------------------------------------------------
#
# This setup provides "dual URLS", where URL like <http://git.example.com/my_repository.git>
# loads Gitweb in the browser and the same URL can be used in commands like `git clone` and `git remote add`.
# It was compiled from some sources on the internet and further customized/tuned.
#
# Please see documentation for:
#
using System;
using System.Security.Cryptography;
using System.Text;
public static class Crypto
{
#region MD5
public static string HashMD5(string phrase)
{
@Balder1840
Balder1840 / camel-pascal.js
Created June 30, 2017 13:20
javascript to camel or pascal case
function camelPad(str){ return str
// Look for long acronyms and filter out the last letter
.replace(/([A-Z]+)([A-Z][a-z])/g, ' $1 $2')
// Look for lower-case letters followed by upper-case letters
.replace(/([a-z\d])([A-Z])/g, '$1 $2')
// Look for lower-case letters followed by numbers
.replace(/([a-zA-Z])(\d)/g, '$1 $2')
.replace(/^./, function(str){ return str.toUpperCase(); })
// Remove any white space left around the word
.trim();
@Balder1840
Balder1840 / install.ps1
Created March 30, 2018 05:08 — forked from jchadwick/install.ps1
NuGet install.ps1 script that overwrites existing file
param($installPath, $toolsPath, $package, $project)
Write-Host "Setting Application to DowJones.Web.Mvc.HttpApplication..."
# Read the transformed text from the custom template included in the package
$customGlobalAsax = $project.ProjectItems | where { $_.Name -eq "Global.asax.cs.custom" }
$customGlobalAsax.Open()
$customGlobalAsax.Document.Activate()
$customGlobalAsax.Document.Selection.SelectAll();
$replacementGlobalAsax = $customGlobalAsax.Document.Selection.Text;
@Balder1840
Balder1840 / select2-readonly.scss
Last active September 28, 2018 05:14
select2-readonly
//https://github.com/select2/select2/issues/3387#issuecomment-321820965
//For me worked what leonardofalk did but a little changed. My select2 Version is 4.03
select[readonly].select2-hidden-accessible + .select2-container {
pointer-events: none;
touch-action: none;
.select2-selection {
background: #eee;
box-shadow: none;
public class WhereBuilder
{
private readonly IProvider _provider;
private TableDefinition _tableDef;
public WhereBuilder(IProvider provider)
{
_provider = provider;
}
public class WhereBuilder
{
private readonly IProvider _provider;
private TableDefinition _tableDef;
public WhereBuilder(IProvider provider)
{
_provider = provider;
}