Skip to content

Instantly share code, notes, and snippets.

Avatar

Federico Ramirez gosukiwi

View GitHub Profile
View test.md

Test

This is a test markdown file!

View gist:3170709
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace Emberjs_TODO_List
{
[WebService(Namespace = "http://gosukiwi.blogspot.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
View gist:3170749
<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
View gist:3170854
(function () {
"use strict";
var Todos = [];
var Todo = function () {
this.title = null;
this.isDone = false;
};
$(document).ready(function () {
View gist:3170860
<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="UTF-8">
View gist:3170895
(function () {
"use strict";
var Todos = [];
// Model - Entities
var Todo = function () {
this.title = null;
this.isDone = false;
};
View gist:3171243
(function () {
"use strict";
var Todos = [];
// Model - Entities
var Todo = function (options) {
this.title = options.title;
this.isDone = options.isDone;
};
View gist:3219706
private void printDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs ev)
{
float linesPerPage = 0;
float yPosition = 0;
int count = 0;
float leftMargin = ev.MarginBounds.Left;
float topMargin = ev.MarginBounds.Top;
string line = null;
Font printFont = txtRazonSocial.Font;
SolidBrush myBrush = new SolidBrush(Color.Black);
View gist:3456824
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="container"></div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/gosukiwi/pochitto/master/pochitto.js"></script>
<script type="text/javascript">
@gosukiwi
gosukiwi / gist:3882238
Created Oct 12, 2012
Parse an Expression into a SQL Where
View gist:3882238
private string parsePredicateExpression(Expression body)
{
BinaryExpression binary = (BinaryExpression)body; // cast
string separator = body.NodeType == ExpressionType.OrElse ? " OR " : " AND ";
if (body.NodeType == ExpressionType.AndAlso || body.NodeType == ExpressionType.OrElse)
{ // If we are working with several ANDs or ORs
return "(" + parsePredicateExpression(binary.Left) + separator + parsePredicateExpression(binary.Right) + ")";
}
else