Skip to content

Instantly share code, notes, and snippets.

dsibiski / DistinguishedName.cs
Created Oct 21, 2020 — forked from davetransom/DistinguishedName.cs
Implementation of LDAP Distinguished Name parser, based on Also trims leading whitespace from attribute names and handles quoted values e.g. the `O="VeriSign, Inc."` in `CN=VeriSign Class 3 Secure Server CA - G3, OU=Terms of use at (c)10, OU=VeriSign Trust Network, O="VeriS…
View DistinguishedName.cs
public class DistinguishedName
/// <summary>
/// Represents a name/value pair within a distinguished name, including the index of the part.
/// </summary>
public struct Part
public Part(string name, string value, int index = -1)
: this()
View .cvimrc
" Settings
let barposition = "bottom"
let smoothscroll = "true"
let mapleader = " "
let defaultnewtabpage = "true"
" Mappings
map <Leader>r reloadTabUncached
map <Leader>tb :tabnew<Cr>
map <Leader>x :quit<Cr>
dsibiski / Spinner.js
Last active Sep 18, 2015
Wrap platform specific components and let the packager do the work. The packager excludes "*.ios.js" files for Android development and vice versa for iOS development.
View Spinner.js
// Spinner.ios.js
var React = require('react-native');
var {
} = React;
class Spinner extends React.Component {
render() {
dsibiski / gist:0c746deeb21c96b3a666
Created Aug 17, 2015
Pass a React Native view from JS to Obj-C
View gist:0c746deeb21c96b3a666
RCT_EXPORT_METHOD(doSomething:(NSNumber *)reactTag)
[_bridge.uiManager addUIBlock:^(RCTUIManager *uiManager, RCTSparseArray *viewRegistry) {
UIView *view = viewRegistry[reactTag];
if ([view isKindOfClass:[UIView class]]) {
[view doSomething];
dsibiski / webpack.config.js
Created Jul 27, 2015
Webpack Config - 'webpack -p' not working for JS/CSS in NPM modules
View webpack.config.js
path = require('path');
webpack = require('webpack');
var config = {
context: __dirname + "/app",
entry: {
javascript: "./app.js",
html: "./index.html",
output: {