Skip to content

Instantly share code, notes, and snippets.

View lkmandy's full-sized avatar
🎯
Focusing

Amanda Shafack lkmandy

🎯
Focusing
View GitHub Profile
@lkmandy
lkmandy / crackle_pop.dart
Last active June 10, 2021 13:03
This program prints out the numbers 1 to 100 (inclusive) in Dart. 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.
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++){
@lkmandy
lkmandy / hamming_distance.dart
Created June 10, 2021 12:49
This program calculates the hamming distance between any two given DNA sequences
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 == ''){
@lkmandy
lkmandy / Standard Contribution Process Flow
Created May 13, 2021 16:16
How to contribute to an open source project
# 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.
@lkmandy
lkmandy / gtkspinner.c
Last active February 27, 2021 08:53
Create a gtk spinner in C
/*
* "Upload file" dialog
*
*/
void
gtr_upload_file_dialog (GtkAction * action, GtrWindow * window)
{
GtrTab *tab;
GtrPo *po;
GtkWidget *dialog, *success_dialog;
@lkmandy
lkmandy / mongodb_cheat_sheet.md
Created August 27, 2020 21:52 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@lkmandy
lkmandy / SquareFromCircle.py
Created November 20, 2017 20:18
SquareFromCircle created by likhene - https://repl.it/@likhene/SquareFromCircle
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)
@lkmandy
lkmandy / SquareFromCircle.py
Created November 20, 2017 19:18
SquareFromCircle created by likhene - https://repl.it/@likhene/SquareFromCircle
iimport turtle
mandy_turtle = turtle.Turtle()
def squareCircle( length, angle1, angle2 ):
mandy_turtle.forward(length)
mandy_turtle.right(angle1)
mandy_turtle.forward(length)
@lkmandy
lkmandy / SquareFromCircle.py
Created November 20, 2017 19:18
SquareFromCircle created by likhene - https://repl.it/@likhene/SquareFromCircle
iimport turtle
mandy_turtle = turtle.Turtle()
def squareCircle( length, angle1, angle2 ):
mandy_turtle.forward(length)
mandy_turtle.right(angle1)
mandy_turtle.forward(length)
@lkmandy
lkmandy / SquareFromCircle.py
Created November 20, 2017 19:18
SquareFromCircle created by likhene - https://repl.it/@likhene/SquareFromCircle
iimport turtle
mandy_turtle = turtle.Turtle()
def squareCircle( length, angle1, angle2 ):
mandy_turtle.forward(length)
mandy_turtle.right(angle1)
mandy_turtle.forward(length)
@lkmandy
lkmandy / SquareFromCircle.py
Created November 20, 2017 19:17
SquareFromCircle created by likhene - https://repl.it/@likhene/SquareFromCircle
iimport turtle
mandy_turtle = turtle.Turtle()
def squareCircle( length, angle1, angle2 ):
mandy_turtle.forward(length)
mandy_turtle.right(angle1)
mandy_turtle.forward(length)