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
def validate_card | |
unless credit_card.valid? | |
credit_card.errors.full_messages.each do |message| | |
# errors.add_to_base message | |
self.errors[:base] << message | |
end | |
end | |
end |
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 <gl/freeglut.h> | |
GLfloat angle = 0.0; | |
void cube(void) { | |
//front | |
glColor3f(1.0,0.0,0.0); | |
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
final Button button6 = (Button) findViewById(R.id.btn_addRAddress); | |
button6.setOnClickListener(new View.OnClickListener() { | |
public void onClick(View v) | |
{ | |
Context mContext = v.getContext(); | |
final Dialog dialog = new Dialog(mContext); | |
dialog.setContentView(R.layout.add_address); | |
dialog.setTitle("Add Address"); |
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
$(function() {followLoad();}); | |
function followLoad () | |
{ | |
$.getJSON("/Twitzer/Author/<%=Author.getuserName()%>/json", function(json) | |
{ | |
var test="true"; | |
var test2=this.Following; | |
if (test2==test) | |
{ |