Skip to content

Instantly share code, notes, and snippets.

View isaku-dev's full-sized avatar

isaku.dev isaku-dev

View GitHub Profile
@isaku-dev
isaku-dev / EnumMapper.cs
Created September 8, 2016 07:34 — forked from SteveDunn/EnumMapper.cs
Enum Mapper in C#
public class EnumMapper : IDisposable
{
readonly Dictionary<Type, Dictionary<string, object>> _stringsToEnums =
new Dictionary<Type, Dictionary<string, object>>( ) ;
readonly Dictionary<Type, Dictionary<int, string>> _enumNumbersToStrings =
new Dictionary<Type, Dictionary<int, string>>( ) ;
readonly ReaderWriterLockSlim _lock = new ReaderWriterLockSlim( ) ;
@isaku-dev
isaku-dev / dashboard.html
Created August 26, 2016 08:01 — forked from robinwarren/dashboard.html
Trello dashboard using Bootstrap and JQuery
<html>
<head>
<title>A Trello Dashboard</title>
<link rel="stylesheet" media="screen" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>Trello Dashboard</h1>
<form class="form-horizontal" id="boards_form">
@isaku-dev
isaku-dev / bas64 sha1 encode
Created September 25, 2015 13:42 — forked from formido/bas64 sha1 encode
python: base 64 encode the sha1 hash of a string
>>> import base64
>>> import hashlib
>>> base64.b64encode(hashlib.sha1("test").digest())
'qUqP5cyxm6YcTAhz05Hph5gvu9M='
@isaku-dev
isaku-dev / npm-proxy-config.txt
Created July 29, 2015 13:24
Node.js npm config behind corporate proxy
-- Set proxy
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
-- Set ssl false
npm config set strict-ssl false
--or alternative(not tested)
npm config set registry "http://registry.npmjs.org/"