Skip to content

Instantly share code, notes, and snippets.

View slpsys's full-sized avatar
💭
💯

Marc Bollinger slpsys

💭
💯
View GitHub Profile
@marc /cygdrive/x/xdev/Version2/Services
$ time grep -R "Juggalo" * > /dev/null
real 0m2.754s
user 0m1.825s
sys 0m0.920s
try
{
// ..etc
else
{
if( caRetVal.Issuer != null && caRetVal.Issuer.Equities != null )
{
for( int i = 0; i < caRetVal.Issuer.Equities.Length; i++ )
{
Xignite.WebServices.XigniteSecurity.Security eq = caRetVal.Issuer.Equities[i];
@slpsys
slpsys / axis2.java
Created December 17, 2012 18:55
Good ol' Apache Axis 2.
import com.xignite.www.services.XigniteGlobalHistoricalXigniteGlobalHistoricalSoapStub;
import com.xignite.www.services.XigniteGlobalHistoricalXigniteGlobalHistoricalSoapStub.GetGlobalHistoricalQuotesRangeResponse;
import com.xignite.www.services.XigniteGlobalHistoricalXigniteGlobalHistoricalSoapStub.*;
import javax.xml.stream.util.*;
import org.apache.axis2.addressing.*;
import java.util.*;
public class Axis2Test {
private XigniteGlobalHistoricalXigniteGlobalHistoricalSoapStub stub;
public abstract class AbstractExecutor
{
public abstract void Execute(object something);
}
marc@slpsys:~$ du -sh
688M .
marc@slpsys:~$ df -h | grep "/dev/sda1"
/dev/sda1 9.4G 8.9G 35M 100% /
@slpsys
slpsys / Extensions.cs
Created August 16, 2012 00:33
I do not know how I feel about this.
public static class Extensions
{
public static TtargetInterface ResolveTraceableDependency<TtargetInterface>(this ITraceable self, IContainer container)
{
return container.Resolve<TtargetInterface>
(
// In reality, this is a config setting
new NamedParameter(@"traceMe", self.TraceMe)
);
}
@slpsys
slpsys / sf_recs.md
Created July 23, 2012 00:34
Marc's SF recommendations (off the top of my head)

things to see/do

  • musée mechanique
  • if you're in the financial district, check out the old pacific stock exchange (pre-hipster fixie movie Quicksilver with Kevin Bacon was filmed here!) it is now a gym. chuckle at that thought.
  • buena vista cafe (ridiculous irish coffee, get bombed so you can handle tourists)
  • sfmoma de young/park/beach/cal academy
  • twin peaks
  • walk around SOMA, where most startups live; majority are in square bounded by [Market, 1st, Folsom, 3rd]
  • do not walk around where new Twitter HQ will be; you will step on human feces, and it is next to one of the biggest peepshow theaters
<outline title=".Net General" text=".Net General">
<outline text="Ayende @ Rahien" title="Ayende @ Rahien" type="rss" xmlUrl="http://feeds.feedburner.com/AyendeRahien" htmlUrl="http://ayende.com/blog/"/>
<outline text="BCL Team Blog" title="BCL Team Blog" type="rss" xmlUrl="http://blogs.msdn.com/bclteam/rss.xml" htmlUrl="http://blogs.msdn.com/b/bclteam/"/>
<outline text="Coding Horror" title="Coding Horror" type="rss" xmlUrl="http://feeds.feedburner.com/codinghorror" htmlUrl="http://www.codinghorror.com/blog/"/>
<outline text="Dare Obasanjo aka Carnage4Life" title="Dare Obasanjo aka Carnage4Life" type="rss" xmlUrl="http://feeds.feedburner.com/Carnage4Life" htmlUrl="http://www.25hoursaday.com/weblog/"/>
<outline text="Elegant Code" title="Elegant Code" type="rss" xmlUrl="http://elegantcode.com/feed/" htmlUrl="http://elegantcode.com"/>
<outline text="Fabulous Adventures In Coding" title="Fabulous Adventures In Coding" type="rss" xmlUrl="http://blogs.msdn.com/ericlippert/rss.xml" htmlUrl="http://blogs.msdn.com/b
@slpsys
slpsys / euclids.py
Created July 8, 2012 19:52
I don't know enough about python yet to tell if this looks as bad as I think it does. Edit: It's terrible!
import recommendations as rec
from itertools import product
from math import sqrt
# Going through the exercises in: http://shop.oreilly.com/product/9780596529321.do
def all_euclideans(fileName):
key = "critics"
recdb = rec.read(fileName)
criticKeys = recdb[key].keys()
@slpsys
slpsys / marketing.txt
Created June 7, 2012 20:48
THIS IS THE WORST IDEA EVER, DO NOT EVER DO THIS
Method One - Visitor Retargeting
1) tons of websites have extra banner placements available.
2) retargeting companies buy those under-impressed locations at a discount.
3) visitors come to the site and are tagged/cookied with the retargeting codes.
4) tagged visitors leave[the site] and randomly surf the web.
5) tagged visitor come across one of the banner locations owned by the retargeting companies.
6) [Our] banner is displayed to the tagged visitor, frequently bringing them back to our site.