show dbs
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 CracklePop { | |
/** | |
* This program prints out the numbers 1 to 100 (inclusive). | |
* If the number is divisible by 3, it prints Crackle instead of the number. | |
* If the number is divisible by 5, it prints Pop. | |
* If the number is divisible by both 3 and 5, it prints CracklePop. | |
*/ | |
void printNumbers(){ | |
for (int i=1; i<=100; i++){ |
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
import 'dart:io'; | |
class Hamming { | |
// Put your code here | |
void distance(String strandA, String strandB){ | |
int hammingDistance = 0; | |
if (strandA.length != strandB.length){ | |
hammingDistance = -1; | |
}else if (strandA =='' && strandB == ''){ |
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
# Contribution Steps | |
1. [Fork][fork] and clone the repository. | |
1. Create a new branch based on `master`: `git checkout -b <my-branch-name>` | |
1. Make your changes, and make sure the site still builds. | |
1. Push to your fork and [submit a pull request][compare] from your branch to `master` | |
1. Pat yourself on the back and wait for your pull request to be reviewed. | |
1. *Here are a few things you have to do:* | |
- Write a good commit message. | |
- Follow the style guide where possible. |
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
/* | |
* "Upload file" dialog | |
* | |
*/ | |
void | |
gtr_upload_file_dialog (GtkAction * action, GtrWindow * window) | |
{ | |
GtrTab *tab; | |
GtrPo *po; | |
GtkWidget *dialog, *success_dialog; |
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
import turtle | |
mandy_turtle = turtle.Turtle() | |
mandy_turtle.speed(0) | |
def squareCircle( length, angle ): | |
for i in range(4): | |
mandy_turtle.forward(length) | |
mandy_turtle.right(angle) |
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
iimport turtle | |
mandy_turtle = turtle.Turtle() | |
def squareCircle( length, angle1, angle2 ): | |
mandy_turtle.forward(length) | |
mandy_turtle.right(angle1) | |
mandy_turtle.forward(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
iimport turtle | |
mandy_turtle = turtle.Turtle() | |
def squareCircle( length, angle1, angle2 ): | |
mandy_turtle.forward(length) | |
mandy_turtle.right(angle1) | |
mandy_turtle.forward(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
iimport turtle | |
mandy_turtle = turtle.Turtle() | |
def squareCircle( length, angle1, angle2 ): | |
mandy_turtle.forward(length) | |
mandy_turtle.right(angle1) | |
mandy_turtle.forward(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
iimport turtle | |
mandy_turtle = turtle.Turtle() | |
def squareCircle( length, angle1, angle2 ): | |
mandy_turtle.forward(length) | |
mandy_turtle.right(angle1) | |
mandy_turtle.forward(length) |