"You must learn from the mistakes of others. You can't possibly live long enough to make them all yourself"
Sam Levenson
Pages: 123 ... 23
  1:  'This code was found in a class supposed to hold all the cards for the game
  2:  
  3:  Public Class CardHolder
  4:  
  5:      Private _deck as List(Of Card)
  6:      Private _UsedCards as List(Of Card)
Tags: VBNET Cards blackjack deck tears View more Last activity 12 hours, 10 minutes ago  
  1:  - (BOOL)detectIfMathWorks {
  2:  	if ((7*3) == 4) {
  3:  		return NO;
  4:  	} else {
  5:  		return YES;
  6:  	}
Tags: objective-c, detect, fault, alu, robust, efficient View more Last activity 14 hours, 44 minutes ago  
  1:  void PROMJTAGComments(int instruction, FILE *file) {
  2:    char str[80], fstr[120];
  3:  
  4:    if (!writeSVFFile) return;
  5:    if (PROMINSTLENGTH == 16) {
  6:      if (instruction == PROMEXTEST)
Tags: c++ horrible thisismyjob View more Last activity 2 weeks, 1 day ago  
  1:  // Found on StackOverflow as a way to print a progress bar to a text console.
  2:  // The fact that C++/CLI is used only puts the icing on the cake.
  3:  
  4:  **#include <iostream>
  5:  #include <time.h>
  6:  #include <cmath>
View more Last activity 2 weeks, 1 day ago  
  1:  if(!empty($login)){
  2:      $login = $login;
  3:  }
Tags: PHP View more Last activity 2 weeks, 1 day ago  
Cpp  Never trust null 0 Votes
  1:  
  2:  lead.Affiliate__c = (landing.Affiliate__c == null ? null : landing.Affiliate__c);
View more Last activity 3 weeks ago  
  1:  'This code was found in a class supposed to hold all the cards for the game
  2:  Public Class CardHolder
  3:  
  4:  Private _deck as List(Of Card)
  5:  Private _UsedCards as List(Of Card)
  6:  
Tags: VBNET Cards blackjack deck tears View more Last activity 3 weeks, 2 days ago  
  1:  # Python 2.7
  2:  # This is my own code, I'm just a noob
  3:  # Comments are welcome to help :p
  4:  # I just don't like to import too much things
  5:  # Fuck struct
  6:  
Tags: Int64 python buffer tcp View more Last activity 4 weeks ago  
Java  BinaryTree remove -8 Votes
  1:  public void remove(int x){
  2:  		if(w==null)
  3:  			return;
  4:  		TreeNode rm=getNode(x),rmP = getParentNode(x);
  5:  		if(rm==w&&w.isBlatt())
  6:  			w=null;
View more Last activity 1 month ago  
  1:  public class Numbers {
  2:  
  3:  	// Based on http://www.cs.utexas.edu/~moore/best-ideas/mjrty/
  4:  	// Demonstrates the evil of "=="
  5:  	public static Integer CountVotes(Integer[] delegates)
  6:  	{
Tags: java wtf View more Last activity 1 month ago