Skip to content

Instantly share code, notes, and snippets.

View gusennan's full-sized avatar

Nate Guerin gusennan

View GitHub Profile
@gusennan
gusennan / booking_stack_trace1
Created December 6, 2013 14:12
Error thrown is at bottom.
[info] application - RESPONSE:<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><doConfirmarReservaResponse xmlns="http://confirmarreserva.vav.ws.renfe.com"><doConfirmarReservaReturn>20131206-1500</doConfirmarReservaReturn></doConfirmarReservaResponse></soapenv:Body></soapenv:Envelope>
[info] application - REQUEST:<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns3:doComprarPlazas xmlns="http://excepciones.vav.ws.renfe.com" xmlns:ns2="http://bean.vav.ws.renfe.com" xmlns:ns3="http://comprarplazas.vav.ws.renfe.com"><ns3:acceso><ns2:agencia>2882</ns2:agencia><ns2:password>g01psg</ns2:password><ns2:sucursal>001</ns2:sucursal></ns3:acceso><ns3:idReserva>R00014406548</ns3:idReserva><ns3:idAgencia>2882</ns3:idAgencia><ns3:listadoDetallePlazaTarifaIda><ns2:coche>0007</ns2:coche><ns2
@gusennan
gusennan / gist:10446689
Created April 11, 2014 07:26
Missing Logos
meinFernBus
# inject
--
import "github.com/codegangsta/inject"
Package inject provides utilities for mapping and injecting dependencies in
various ways.
## Usage
#### func InterfaceOf
public interface Filter {
public boolean PassesFilter(Leg leg);
public void add(Filter f);
}
public class Filter implements Filter {
private Filter f;
public boolean PassesCriteria(Leg leg) {
@gusennan
gusennan / crypt_unlock.sh
Created March 7, 2015 17:57
initramfs-hook for unlocking LUKS-encrypted LVM partition
#!/bin/sh
PREREQ="dropbear"
prereqs() {
echo "$PREREQ"
}
case "$1" in
prereqs)
(1a)
double * line(double * pt1, double * pt2){
double xTmp, yTmp;
xTmp = (pt2[1]-pt1[1])/(pt2[0]-pt1[0]);
yTmp = pt1[1] - xTmp*pt1[0];
pt1[0] = xTmp;
pt1[1] = yTmp;
return pt1;
}
@gusennan
gusennan / hermes_renderer_crash.md
Last active January 12, 2016 10:23
error messages

While in background:

Jan 12 11:20:14 iPhone-von-reBuy RebuyAppiOS[950] <Warning>: Warning: Unhandled exception: System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at RebuyApp.iOS.Renderers.ExtendedMapsRenderer.OnElementChanged (Xamarin.Forms.Platform.iOS.ElementChangedEventArgs`1 e) <0x1000a97b0 + 0x00240> in <filename unknown>:0 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].SetElement (Xamarin.Forms.Platform.iOS.TElement element) <0x100dc3ac0 + 0x0028f> in <filename unknown>:0 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (Boolean disposing) <0x100dc4288 + 0x000d3> in <filename unknown>:0 

at Xamarin.Forms.Platform.iOS.ViewRenderer`2[TView,TNativeView].Dispose (Boolean disposing) <0x100dc2b00 + 0x000

Readings:
The Swift Programming Language (Swift 2.2) (Links to an external site.) - https://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11 (Links to an external site.)
Pages 1-271
You will want to download that to iBooks and eventually read the entire thing. The Swift Tour on Pages 3-33 you should know like the back of your hand. Everything up through properties you should be familiar with starting next week.
Optional reading (Playgrounds which follow the book):
https://github.com/nettlep/learn-swift (Links to an external site.)
Highly recommend exploring portions of the book which don't seem clear in the noted playgrounds. These implement all of the examples from the book so that you don't have to type them in yourself.
Assignment
Problem 1 (20 points)
Create a single view Project called Assignment2.
@gusennan
gusennan / commit and push.sh
Created July 19, 2016 01:49
Git In Terminal
Open the terminal
cd <directory_that_contains_repository>
git add .
git commit -m "<your message here>"
git pull
git push origin master
[{
"title": "Blinker",
"contents": [
[11, 11],
[12, 11],
[11, 12],
[12, 12],
[13, 12],
[11, 13],
[12, 13]