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
jQuery(document).ready(function(){ | |
jQuery("#zipCode").change(function(){ | |
jQuery.ajax({ | |
type : 'POST', | |
dataType : 'json', | |
data : { | |
zipCode : jQuery(this).val(), | |
state : jQuery("#state").val() | |
}, | |
url : <g:link action="territoryLookup" />, |
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
// C++ | |
class MicroprocessorSimulator | |
{ | |
public: | |
int (MicroprocessorSimulator::*pt2Member)(float, char, char) = NULL; // C++ | |
void interruptHandler(char toTransform) { return toTransform+10; } | |
void handleInterrupt39(void (*interruptHandler)(char)) | |
{ | |
char transformed = (*interruptHandler)(a) |
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 com.visionarysoftwaresolutions | |
class DemoController { | |
def datastoreService | |
def index(){ | |
} | |
def live(){ |
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 com.visionarysoftwaresolutions | |
import grails.test.mixin.* | |
import org.junit.* | |
/** | |
* See the API for {@link grails.test.mixin.web.ControllerUnitTestMixin} for usage instructions | |
*/ | |
@TestFor(DemoController) | |
@Mock([ ZapCard, Zapper ]) |
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 com.visionarysoftwaresolutions | |
class DatastoreService { | |
def parseService | |
def zapCardService | |
public Zapper createUser(String email){ | |
parseService.createUser(email) | |
} | |
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 com.quantumaspects | |
import groovyx.net.http.* | |
import net.sf.json.JSONArray | |
abstract class AbstractParseAPI implements ParseAPI { | |
public Collection retrieve(String parseEntity){ | |
return retrieveFromParse(parseEntity) |
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 com.visionarysoftwaresolutions | |
//Refactored | |
class DatastoreService { | |
def parseService | |
public Zapper createUser(String email){ | |
parseService.createUser(email) | |
} | |
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
// $Id$ | |
/* Copyright (C) 2008 John B. Shumway, Jr. | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
private class LatZones | |
{ | |
private char[] letters = { 'A', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', | |
'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Z' }; | |
private int[] degrees = { -90, -84, -72, -64, -56, -48, -40, -32, -24, -16, | |
-8, 0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 84 }; | |
private char[] negLetters = { 'A', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', | |
'L', '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
package dumb.test; | |
import java.util.Comparator; | |
import java.util.Dictionary; | |
import java.util.Enumeration; | |
import java.util.LinkedHashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; |
OlderNewer