This file contains hidden or 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 sudoku; | |
import java.util.LinkedList; | |
public class Sudoku { | |
public void DoSudoku(int [][] board, int row, int column) { | |
if(isFinish(board)){showBoard(board); return;} | |
if(row >= board.length) return; | |
if(column >= board[row].length){ |
This file contains hidden or 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
//todo-spec.js | |
describe('4chin page', function() { | |
it('click in image', function() { | |
browser.ignoreSynchronization = true; // Non angular page | |
browser.driver.manage().window().maximize(); | |
browser.get('http://boards.4chan.org/wg/thread/6813282/like-this'); | |
var list = element.all(by.css('.fileThumb')); | |
list.each(function(elem){ | |
elem.click(); |
This file contains hidden or 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 equilateral(a,b,c) | |
if(((a-b)+(b-c)+(a-c))==0) | |
return true | |
end | |
return false | |
end | |
def isoceles(a,b,c) | |
if(((a-b)+(b-c))==0 or ((a-b)+(a-c))==0) | |
return true |
This file contains hidden or 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
class Collatz(object): | |
def __init__(self): | |
self.numbers = [] | |
self.ways = 1 | |
def solve(self, number): | |
self.numbers.clear() | |
self.ways = 0 |
This file contains hidden or 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
#!/usr/bin/python2 | |
import sys | |
def main(argv): | |
if (len(sys.argv) != 2): | |
sys.exit('Uso: caesar.py <entero>') | |
plaintext = list(raw_input('Mensage: ')) | |
alphabet = list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') |
This file contains hidden or 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 countries | |
#Obtiene todos los países para ser listados | |
render json: CS.countries | |
end | |
def cities | |
#Obtiene las ciudades por un estado y un país | |
render json: CS.cities(params[:state], params[:country]) | |
end |
NewerOlder