Skip to content

Instantly share code, notes, and snippets.

View ciriarte's full-sized avatar
🏴‍☠️

Carlos Iriarte ciriarte

🏴‍☠️
View GitHub Profile
@ciriarte
ciriarte / rvm.sh
Created June 28, 2011 18:40
rvm's installer
case "$(uname)" in
Darwin|FreeBSD)
archive_md5="$(/sbin/md5 -q "${archive}")"
;;
OpenBSD)
archive_md5="$(/bin/md5 -q "${archive}")"
;;
Linux|*)
@ciriarte
ciriarte / FastDelegate.h
Created August 15, 2011 16:58
Fast Delegate by Dong Clugston
// FastDelegate.h
// Efficient delegates in C++ that generate only two lines of asm code!
// Documentation is found at http://www.codeproject.com/cpp/FastDelegate.asp
//
// - Don Clugston, Mar 2004.
// Major contributions were made by Jody Hagins.
// History:
// 24-Apr-04 1.0 * Submitted to CodeProject.
// 28-Apr-04 1.1 * Prevent most unsafe uses of evil static function hack.
// * Improved syntax for horrible_cast (thanks Paul Bludov).
public class ModuleRegistrationConvention : IRegistrationConvention {
#region IRegistrationConvention Members
public void Process(Type type, StructureMap.Configuration.DSL.Registry registry) {
// only interested in non abstract concrete types that have a matching named interface
if (type.IsAbstract || !type.IsClass || type.GetInterface("IModule") == null)
return;
System.Diagnostics.Debug.WriteLine("Found {0} {1}", type.Name, type.Assembly);
registry.AddType(typeof(IModule), type);
}
@ciriarte
ciriarte / gist:1163639
Created August 22, 2011 21:24 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job:
Favorite Python project:
Favorite Conference:
Python Experience Level:
@ciriarte
ciriarte / mike_sample.cs
Created November 10, 2011 21:40
Jelpin Maik
public class MikeController : Controller
{
// try http://localhost:someport/mike/is/awesome
[AcceptVerbs("POST")]
public ActionResult Is(String howIsMike)
{
// blablabla
return View();
}
@ciriarte
ciriarte / agents_available.xml
Created January 25, 2012 22:42
Responses required by HTR
<?xml version="1.0" encoding="utf-8"?>
<Status>0<Status>
@ciriarte
ciriarte / JSON.stringify.bug.es
Created March 2, 2012 01:52
JSON.stringify.bug.es
// You can test this implementation in http://jsfiddle.net/ciriarte/h8CLw/
var myAnonymousObject = {
SessionID: "TEST-PROPERTY_1_VALUE",
property_2: "TEST-PROPERTY_2_VALUE",
property_3: "TEST-PROPERTY_3_VALUE",
property_4: "TEST-PROPERTY_4_VALUE",
property_5: "TEST-PROPERTY_5_VALUE",
property_6: "TEST-PROPERTY_6_VALUE"
};
Caught in listener.run() com.mot.mrcp.MrcpException: Got an error MRCP Response code of 407: com.mot.mrcp.mrcpv1.client.messages.MrcpResponseMessage@4f8ea17d at com.mot.mrcp.mrcpv1.client.MrcpClient.recognizerStartTimers(MrcpClient.java:1218) at com.mot.mrcp.ec.motomrcpv1.MotV1MRCPASRConnection.waitForResult(MotV1MRCPASRConnection.java:234) at com.voxeo.sipmethod.mrcp.client.impl.MrcpAsrSessionImpl.getRecognizeResult(MrcpAsrSessionImpl.java:766) at com.voxeo.sipmethod.mrcp.client.impl.RecognizerRequestHandleImpl.waitForResult(RecognizerRequestHandleImpl.java:40) at com.voxeo.sipmethod.mrcp.client.impl.RecognizerRequestHandleImpl.waitForResult(RecognizerRequestHandleImpl.java:30) at com.voxeo.tropo.util.MrcpAsrListener$1.awaitResult(MrcpAsrListener.java:105) ...
@ciriarte
ciriarte / gist:7095532
Created October 22, 2013 05:11
List issues
git log --format=%s v.3.0.6..HEAD --grep=\#[0-9] | sed 's/.*\([0-9]\{3\}\).*$/\1/' | sort | uniq
@ciriarte
ciriarte / analysis-services.md
Created January 9, 2014 00:30
Analysis Services binding redirect
Additional information: Could not load file or assembly 'Microsoft.AnalysisServices.AdomdClient, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.