Skip to content

Instantly share code, notes, and snippets.

@jschementi
jschementi / git-tfs.md
Created January 26, 2010 08:35
Using TFS and GIT together

Using TFS and GIT together

What if your team uses TFS, but you want offline support? You can have a Git repo as well, but then getting your changes to TFS is burdensome. Here’s where a GIT to TFS bridge would be handy.

Setting up your repo

Here’s how to keep a TFS repository foo, and a GIT repository bar, in sync. First step is you need to create a new TFS workspace:

cd \

tf workspace /new /noprompt Foo

@jschementi
jschementi / README.md
Created April 29, 2012 23:56
Trello to Todo.txt converter
@jschementi
jschementi / git-cheat.rdoc
Created January 31, 2009 18:44
Git cheatsheets

Add colors to your ~/.gitconfig file:

[color]
  branch = auto
  diff = auto
  status = auto
[color "branch"]
  current = yellow reverse
  local = yellow
  remote = green
[color "diff"]
System::Byte.instance_methods(false)
#=> ["-", "%", "&", "*", "**", "/", "-@", "[]", "^", "|", "~", "+", "<", "<<", "<=", "<=>", "==", ">", ">=", ">>", "abs", "div", "divmod", "modulo", "quo", "to_f", "to_s", "zero?", "size", 'compare_to', 'equals', 'get_hash_code', 'to_string', 'get_type_code']
l = System::Byte.instance_methods(false).last
#=> 'get_type_code'
l.ruby_name
#=> "get_type_code"
l.clr_name
#=> "GetTypeCode"
@jschementi
jschementi / userChrome.css
Last active August 10, 2018 05:53
FireFox CSS
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*
Author: Twily
Description: Minimal flat styled tabs for Australis
Compitability: Firefox Nightly v31.0a1 - v32.0a1 (Australis)
CSS Variables were introduced to Firefox in v29.0a1
Website: http://twily.info/
*/
@jschementi
jschementi / if.html
Created October 26, 2011 20:29
The mysterious "if" attribute ...
<div id="edit-settings" class="button" if="settings-edit"><div>
@jschementi
jschementi / ipyclr2.patch
Created July 28, 2011 13:35
Patch to make IronPython build for .NET 2.0
diff --git a/Languages/IronPython/IronPython.Modules/_csv.cs b/Languages/IronPython/IronPython.Modules/_csv.cs
index 982a735..9eef957 100644
--- a/Languages/IronPython/IronPython.Modules/_csv.cs
+++ b/Languages/IronPython/IronPython.Modules/_csv.cs
@@ -739,7 +739,11 @@ in CSV format.")]
_state = State.StartRecord;
_fields.Clear();
_is_numeric_field = false;
+#if !CLR2
_field.Clear();
@jschementi
jschementi / SparklineUsage.cs
Created May 8, 2011 05:35
Usage of Schementi.Controls.Sparkline
this.MySparkline.AddTimeValue(double);
package earthquake_detector;
import java.util.Map;
import com.buglabs.bug.module.gps.pub.IPositionProvider;
import com.buglabs.bug.swarm.connector.pub.ISyncFilter;
/**
* Given a previous sample and the current sample, determine if the difference is great enough to pass data to the server.
*
@jschementi
jschementi / linq.rb
Created July 20, 2010 01:55
Summer of "Iron"
load_assembly "System.Core"
using_clr_extensions System::Linq
# ...
products.
where(lambda { |p| p.units_in_stock == 0 }).
each { |x| puts x.product_name }