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
public class SinglyNode { | |
public SinglyNode next = null; | |
public int value; | |
public SinglyNode(int d) | |
{ | |
value = d; | |
} | |
public static SinglyNode orderNodes(SinglyNode node, int value) |
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 net.rodrigogarcia.net.Trees; | |
import java.io.*; | |
import java.util.*; | |
public class Solution { | |
static class Part { | |
public String getName() { return "X"; } | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am rodchile on github. | |
* I am rodchile (https://keybase.io/rodchile) on keybase. | |
* I have a public key whose fingerprint is F7BF 1FAB A5EF BAD3 D21A C35F 51F9 8C77 5A3F 7177 | |
To claim this, I am signing this object: |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <string.h> | |
char *sortString (char *stringToSort) | |
{ | |
int stringLenght = strlen(stringToSort); | |
char *sortedString = strdup(stringToSort); |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
void reverseString (char **str) | |
{ | |
char *strCopy = *str; | |
int size = strlen(strCopy) - 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
#import <QuartzCore/QuartzCore.h> | |
static long long __color1 = 0x2ACE46; | |
static long long __color2 = 0x34AADC; | |
@interface MViewController () | |
@property (nonatomic,strong) CALayer *layerColor; | |
@property (nonatomic,strong) UIColor *color1; |
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
// | |
// main.c | |
// first_program | |
// | |
// Created by Rodrigo Garcia on 1/18/13. | |
// Copyright (c) 2013 Rodrigo Garcia. All rights reserved. | |
// | |
#include <stdio.h> |
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
myObject = Object.new | |
def myObject.sayHello | |
puts 'Hello from my singleton method! This is me: ' | |
puts self | |
end | |
myObject.sayHello | |
puts "Any doubts? I'm still the same object:" | |
puts myObject |
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
RKClient* requestClient = [RKClient clientWithBaseURL:MBLoginURL]; | |
requestClient.disableCertificateValidation = YES; | |
RKRequest* theRequest = [requestClient requestWithResourcePath:@"" delegate:self]; | |
[theRequest setHTTPBodyString:httpBody]; | |
[theRequest setMethod:RKRequestMethodPOST]; | |
[theRequest send]; |
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
Map<String,Object> updateValues = new HashedMap(); | |
updateValues.put("pmtDebtorOrgIdentificationOtherId", "String Rut"); | |
updateValues.put("pmtRequestedExecutionDate","String"); | |
updateValues.put("agreementId","String"); | |
updateValues.put("cctPaymentType", "String"); | |
updateValues.put("clientId","String"); | |
updateValues.put("userId", "String"); | |
updateValues.put("trChannel", "String"); | |
updateValues.put("cctStatus","new"); | |
PaymentObjectDTO payObj = new PaymentObjectDTO(); |
NewerOlder