Skip to content

Instantly share code, notes, and snippets.

@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 / README.md
Created April 29, 2012 23:56
Trello to Todo.txt converter
@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 }
@jschementi
jschementi / bar.rb
Created July 19, 2010 08:25
MIX10, Part 2.2 & 3
foo_module = IronRuby.require 'foo'
foo_module.Foo.new.bar
@jschementi
jschementi / hello-webforms.aspx
Created July 19, 2010 08:03
MIX10, Part 2.1 (2)
<%@ Page Language="IronPython" CodeFile="hello-webforms.aspx.py" %>
Enter your name:
<asp:TextBox ID="TextBox1" runat="server">
</asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"/>
<p>
<asp:Label ID="Label1" runat="server" Text="Label">
</asp:Label>
</p>
@jschementi
jschementi / helloworld-curly.rb
Created July 19, 2010 07:17
Blog: MIX 10 Part 2.1
get('/') {
"Hello, World"
}