/* 
 * File:   main.cpp
 * Author: Bangonkali
...

C++ Numerical Methods: Gauss Se...

by Bangon Kali, March 24, 2012 01:55, 1 refactoring, tagged with methods gauss Numerical seidel systems

This solves systems of equa...

91d15ef7d151a63d475a3fe8f0fbad82 Talk
#include <stdio.h>
	#include <stdlib.h>
	#include <string.h>
...

C Linux Shell

by https://www.google.com/accounts/o8/id?id=AItOawlNfH_H9Dh2QVh-Bdy_aEjJwD8hgAyN1ZE, March 14, 2012 21:39, 1 refactoring, tagged with linux c

This is for a class. I have...

55502f40dc8b7c769880b10874abc9d0 Talk
/* 
 * File:   main.cpp
 * Author: Bangonkali
...

C++ Numerical Methods: Secant M...

by Bangon Kali, March 27, 2012 08:38, 1 refactoring, tagged with Numerical Methods Secant Method

Numerical Methods using Sec...

91d15ef7d151a63d475a3fe8f0fbad82 Talk
#encoding: utf-8
class Calculator
...

Ruby Calculation Class

by https://www.google.com/accounts/o8/id?id=AItOawkD2MUg6GA8qZHhY_HggITDWRcjqGxO5-s, March 31, 2012 01:25, 1 refactoring, tagged with rails, ruby

Calculator class for our Ca...

55502f40dc8b7c769880b10874abc9d0 Talk
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
...

Java remove duplicated arrays

by https://www.google.com/accounts/o8/id?id=AItOawm4A5J1WzkK855jQnfumL_p7aDqpEhn2B8, March 18, 2012 20:59, 1 refactoring

Use a one-dimensional array...

55502f40dc8b7c769880b10874abc9d0 Talk
/* 
 * File:   main.cpp
 * Author: Bangonkali (bangonkali@gmail.com)
...

C++ Runge-Kutta (2nd Order): He...

by Bangon Kali, March 29, 2012 10:02, 1 refactoring

This example solves the fol...

91d15ef7d151a63d475a3fe8f0fbad82 Talk
/* 
 * File:   main.cpp
 * Author: Bangonkali
...

C++ Numerical Methods: Gauss Jo...

by Bangon Kali, March 24, 2012 01:55, 1 refactoring, tagged with methods gauss equations Numerical jordan

Numerical methods applicati...

91d15ef7d151a63d475a3fe8f0fbad82 Talk
/* 
 * File:   main.cpp
 * Author: Bangonkali
...

C++ Numerical Methods: Gaussian...

by Bangon Kali, March 24, 2012 01:54, No refactoring, tagged with methods elimination equations Numerical gaussian

Numerical Methods applicati...

91d15ef7d151a63d475a3fe8f0fbad82 Talk
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
...

Java GUI for one dimensional array

by https://www.google.com/accounts/o8/id?id=AItOawm4A5J1WzkK855jQnfumL_p7aDqpEhn2B8, March 18, 2012 21:02, No refactoring

i would like to add a user ...

55502f40dc8b7c769880b10874abc9d0 Talk
if current_user.requested_friends.exists?(params[:friend_id]) or current_user.pending_friends.exists?(params[:friend_id]) or current_user.friends.exists?(params[:friend_id])

Ruby If statement with many OR o...

by https://me.yahoo.com/a/hrHoLLx8w4O8IV2uFy1jAKJ7B702_qruWPI-, February 21, 2012 14:01, 8 refactorings, tagged with ruby, rack

I would like to refactor th...

55502f40dc8b7c769880b10874abc9d0 Talk
/*	SNAKE.C
 *	by plehw
 *	Feb 12
...

C Snake / Nibbles clone in C ...

by plewh, February 08, 2012 02:05, 7 refactorings, tagged with c, snake, ncurses

Self taught coder looking f...

8365bdc327827e53dd6abfb772db5320 Talk
def fetch(subjects = current_subjects, queue = QUEUES)
      subjects.each do |s|
...

Ruby three into one

by blueblank.myopenid.com, February 15, 2012 14:11, 7 refactorings, tagged with ruby

I want to turn these three ...

55502f40dc8b7c769880b10874abc9d0 Talk
-------
#shplaying.php file

...

PHP Parsing of XML data has hig...

by mattlax.myopenid.com, February 04, 2012 19:32, 6 refactorings, tagged with speed, php, curl, cpu, debug

This script simply retrieve...

Bdcc24a6af71061f368915bb415644c7 Talk
const int MAX_PARTICLES = 16;
const int MAX_PARTICLE_SPEED = 3;
const int PARTICLE_FRAMES = 120;
...

C Simple Particle Engine for ...

by https://www.google.com/accounts/o8/id?id=AItOawl3BeAhTXKYDpKI7ld64fgVwaukoKGEuUo, February 08, 2012 21:55, 5 refactorings, tagged with game, C, struct

This took several hours ove...

55502f40dc8b7c769880b10874abc9d0 Talk
@all_brands = Brand.find(:all).map(&:name).sort_by{|x| (-1)*x.id.length} 
    @line_items = LineItem.find(:all) # I cannot use database filter by brand here (NOSQL DB)
    @all_brands.each_with_index do |brand, ind|
...

Ruby Please improve

by https://www.google.com/accounts/o8/id?id=AItOawlHZN6xya-P41xmvSHLey27wdmmgvG24aM, February 08, 2012 01:11, 5 refactorings, tagged with ruby

In this piece of code I ass...

55502f40dc8b7c769880b10874abc9d0 Talk
layouts = Dir.glob("_layouts/*")
layouts.each do |layout|
  layout.gsub!(/^_layouts\/(.*)\..*$/, '\1')
...

Ruby List the files in a directo...

by Aziz Light, February 01, 2012 08:46, 4 refactorings, tagged with ruby, ruby1.9

The title says it all, I'm ...

D69bd6b89f0c9204eed89de9d7ee4632 Talk
$target.hasClass('widgettitle') ||
     $target.hasClass('ui-icon-minus') ||
          $target.hasClass('ui-icon-plus') ? actionOptions['toggleWidgetContent']() :
...

JavaScript Can this be improved?

by https://www.google.com/accounts/o8/id?id=AItOawmrAARXAU70eBdo7cU4o7zzc2MFl1jwFnc, February 17, 2012 15:23, 4 refactorings, tagged with javascript, jquery, jquery ui

I'm wondering if this compa...

55502f40dc8b7c769880b10874abc9d0 Talk
def test_condition(condition, item, test_item)
  case condition.query 
...

Ruby One or two methods?

by blueblank.myopenid.com, February 13, 2012 14:33, 3 refactorings, tagged with ruby methods

Help me improve this, it wo...

55502f40dc8b7c769880b10874abc9d0 Talk
var MyNamespace = MyNamespace  || {};
MyNamespace.BingMap = {
    BingMapCredentials: 'xxxxxxxxx', // should be a default setting (null)
...

JavaScript Convert simple Javascript t...

by Chase Florell, February 04, 2012 09:12, 3 refactorings, tagged with javascript, jquery, bing maps

I've been working on a simp...

D41d8cd98f00b204e9800998ecf8427e Talk
class Company
  has_many :stores
end
...

Ruby Active Record getting uniqu...

by kibyegn.myopenid.com, February 03, 2012 01:40, 1 refactoring, tagged with rails, short clean ruby, active record

I still think I could make ...

6d071ab3b1a56ebe43df404356331163 Talk
import sys,functools

def multi_triggered(contat,lamb):
...

Python multi triggered decorator

by https://www.google.com/accounts/o8/id?id=AItOawmTNf4OM_K2oKIswc_Gh7lbXIlIGDi0Piw, February 13, 2012 07:40, No refactoring, tagged with decorator, triggered

Implements a parametric dec...

55502f40dc8b7c769880b10874abc9d0 Talk
from itertools import product
def breadth_first_product(*args):
	"""Works like itertools.product but iterates "breadth first".
...

Python Breadth first cartesian pro...

by abrakadabra42.myopenid.com, January 02, 2012 17:28, 17 refactorings, tagged with iterators, cartesian product

There must be an easier way...

55502f40dc8b7c769880b10874abc9d0 Talk
<?php
	$location = htmlspecialchars($_SERVER['HTTP_REFERER']);
	$email = strtolower(mysql_real_escape_string($_REQUEST['email']));
...

PHP php refactoring

by openid.aol.com/zaknaji, January 15, 2012 23:31, 8 refactorings

Just completed this a week ...

9c5da7ae7d2aea9dc96dd57a9044fccc Talk
public void setPageOption(String key, String value){
		if (key==null) return;
		Boolean boolValue = value==null? null: "true".equals(value);
...

Java Too many if statements

by https://www.google.com/accounts/o8/id?id=AItOawnvtFGh-r9ibK5ZHTYiZh2UzxDww7-bwI0, January 04, 2012 03:17, 5 refactorings

Too many if statements. Wan...

55502f40dc8b7c769880b10874abc9d0 Talk
package BST;
import exceptions.DuplicateItemException;

...

Java first BST

by orangelight.myopenid.com, January 18, 2012 14:13, 5 refactorings

hi,

so i'm still a new p...

55502f40dc8b7c769880b10874abc9d0 Talk