#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
[DebuggerDisplay("Count = {Count}")] | |
[ComVisible(false)] | |
public class SafeObservableCollection<T> : ObservableCollection<T> | |
{ | |
private readonly Dispatcher dispatcher; | |
public SafeObservableCollection() | |
: this(Enumerable.Empty<T>()) | |
{ | |
} |
// this file is an example of how to intercept a C++ method by using the | |
// LD_PRELOAD environment variable of the GNU dynamic linker. | |
// | |
// it works like this: | |
// | |
// 1) define a method that will have the same symbol as the intercepted | |
// method when compiled. For example, the method Foo::getValue() | |
// defined here has the mangled symbol "_ZNK3Foo8getValueEv". | |
// tools like nm, objdump or readelf can display the symbols of | |
// binaries. note that depending on compiler and linker options, |
#!/usr/bin/env python3 | |
# ircecho.py | |
# Copyright (C) 2011 : Robert L Szkutak II - http://robertszkutak.com | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. | |
# |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
public static class CastingHelper | |
{ | |
public static T CastToStruct<T>(this byte[] data) where T : struct | |
{ | |
var pData = GCHandle.Alloc(data, GCHandleType.Pinned); | |
var result = (T)Marshal.PtrToStructure(pData.AddrOfPinnedObject(), typeof(T)); | |
pData.Free(); | |
return result; | |
} |
#! /bin/bash | |
# originaly from http://tinyurl.com/twitch-linux from taladan | |
# www.youtube.com/user/taladan | |
# gist created by brodul | |
INRES="1280x800" # input resolution | |
#OUTRES="1024x640" # Output resolution | |
OUTRES="800x500" # Output resolution |
zfill1 | |
it took 149 | |
zfill2 | |
it took 629 |