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
; =========== | |
; mp3_db.lisp | |
; =========== | |
; Primer programa en Common Lisp | |
; Simple base de datos de cds, practicamente el primer ejemplo de: Practical Common Lisp | |
; | |
; Porque Lisp? | |
; Por lo que he leido, es una gran manera de aprender! | |
; | |
; Autor: |
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
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 | |
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 | |
81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 | |
52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91 | |
22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80 | |
24 47 32 60 99 03 45 02 44 75 33 53 78 36 84 20 35 17 12 50 | |
32 98 81 28 64 23 67 10 26 38 40 67 59 54 70 66 18 38 64 70 | |
67 26 20 68 02 62 12 20 95 63 94 39 63 08 40 91 66 49 94 21 | |
24 55 58 05 66 73 99 26 97 17 78 78 96 83 14 88 34 89 63 72 | |
21 36 23 09 75 00 76 44 20 45 35 14 00 61 33 97 34 31 33 95 |
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
// | |
// ViewController.m | |
// NSURLConnectionIOS | |
// | |
// Created by Jose Miguel Salcido on 1/20/13. | |
// Copyright (c) 2013 Dudes. All rights reserved. | |
// | |
#import "ViewController.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
package personal.nombre.prueba; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.view.Menu; | |
import android.widget.TextView; | |
public class DisplayMessageActivity extends Activity { |
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
// Proyecto 1 de Computo Movil | |
// Script para el proyecto 1 de Computo Movil. | |
// Triggers the function when the screen unlocks | |
device.screen.on("unlock", function(){ | |
feeds.weather.get( | |
{location: 'Ciudad Obregon', | |
locationtype: 'city', | |
unittype: 'm' | |
}, |
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
// Proyecto 1 de Computo Movil | |
// Script para el proyecto 1 de Computo Movil. | |
// autor: Jose Salcido | |
// id ITSON: 50168 | |
// ============================================= | |
// Escribo todos mis comentarios en ingles y mis | |
// variables igual por que me gusta asi, si hay | |
// problema avisenme por favor.. | |
// ============================================= |
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 SomeController { | |
// pretend all dependencies are here. | |
@RequestMapping(value = "/some-request", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) | |
public ResponseEntity<Response<SomeRequest> > getSomeRequest(HttpSession session) { | |
SomeRequest someRequest = this.someBusinessService.createSomeRequest(session.getId()); | |
for (String x: someRequest.getSome()) { | |
if (x.equals("someStringNotAsAConstant")) { | |
process(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
public class SomeController { | |
private final SomeControllerHelper someControllerHelper; | |
// public constructor with the dependency | |
@Autowired | |
public SomeController(SomeControllerHelper someControllerHelper) { | |
this.someControllerHelper = someControllerHelper | |
} | |
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 interface UserService { | |
User getUser(); | |
void processSomeEx(String some); | |
void save(User user); | |
} | |
public class UserServiceImpl implements UserService { | |
@Override | |
public User getUser() { |
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 SomeController { | |
// pretend that UserService is here injected | |
@RequestMapping(value = "/some-request", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) | |
public ResponseEntity<Response<SomeRequest> > getSomeRequest(HttpSession session) { | |
// remove NOT needed logic | |
SomeRequest someRequest = this.someBusinessService.createSomeRequest(session.getId()); | |
this.userService.processSomeEx(someRequest); | |
boolean isSaved = this.userService.handleConfigTurnedOn(someRequest); |
OlderNewer