This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Xml; | |
using System.Collections; | |
namespace Add2Project | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery.math v1.0 | |
* http://epicapp.com/jquery.math | |
* | |
* Copyright (c) 2009 Mark Kockerbeck | |
* Dual licensed under the MIT and GPL licenses. | |
*/ | |
(function($){ | |
$.math = { version: 1.0 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text.RegularExpressions; | |
//Tony ***** H19 08/24/2009 | |
namespace App_Code | |
{ | |
public class PasswordStrength | |
{ | |
public string DoesPasswordMeetBusinessRules(string strPasswordToTest) | |
{ | |
// Password Rules *************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
sys = require("sys") | |
, fs = require("fs") | |
, path = require("path") | |
, exec = require("child_process").exec | |
; | |
console.log("Staring"); | |
var file = __dirname + "\\input.txt"; | |
console.log("reading " + file); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
public static class SerializationExtensions | |
{ | |
public static string ToJson<T>(this T obj) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys, os, re | |
import getpass, getopt | |
import xml.etree.ElementTree as ET | |
pref_xcode4_loc = "/Applications/Xcode.app" | |
pref_xcode5_loc = "/Applications/Xcode5-DP.app" | |
pref_loc = "/Users/%s/Library/Preferences/XamarinStudio-4.0/MonoDevelopProperties.xml" % (getpass.getuser()) | |
pref_key = "MonoDevelop.MacDev.AppleSdkRoot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys, os | |
import xml.etree.ElementTree as ET | |
from xml.etree.ElementTree import Element | |
namespace = "http://schemas.microsoft.com/developer/msbuild/2003" | |
def find_files_with_ext(extension): | |
return [f for f in os.listdir('.') if os.path.isfile(f) and os.path.splitext(f)[1] == extension] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export MARKPATH=$HOME/.marks | |
function jump { | |
cd $MARKPATH/$1 2> /dev/null || echo "No such mark: $1" | |
} | |
function mark { | |
mkdir -p $MARKPATH; ln -s $(pwd) $MARKPATH/$1 | |
} | |
function unmark { | |
rm -i $MARKPATH/$1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"net" | |
"os" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd `brew --repository` | |
git reset --hard HEAD | |
brew update | |
Sometimes the above doesn't work. In that case, do | |
cd `brew --repository` | |
git reset --hard origin/master | |
brew update |
OlderNewer