Skip to content

Instantly share code, notes, and snippets.

View JL-Cox's full-sized avatar

JL Cox JL-Cox

  • Think3 Solutions
  • Houston, TX
View GitHub Profile
@JL-Cox
JL-Cox / CodeWarsKata_TwoSum_06252018.cs
Last active July 3, 2018 23:18
CodeWarsKata: TwoSum
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//Verified Correct Answer
namespace CodeWarsKata_TwoSum_06252018_
{
class Program
@JL-Cox
JL-Cox / CodeWarsKata_RoboScript1_SyntaxHighlighting.cs
Last active July 3, 2018 23:18
CodeWarsKata: Syntax Highlighting
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualBasic;
namespace CodeWarsKata_RoboScript1_SyntaxHighlighting
{
class Program
@JL-Cox
JL-Cox / CodeWasKata_FactorialDecomposition_06262018.cs
Created June 26, 2018 14:00
CodeWarsKata: Factorial Decomposition
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodeWarsKata_FactorialDecomposition_06262018
{
class Program
{
@JL-Cox
JL-Cox / EulerProject_14_06262018.cs
Last active July 3, 2018 23:19
Project Euler: 14
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EulerProject_14_06262018
{
class Program
{
@JL-Cox
JL-Cox / First HTML-CSS Project.html
Created June 27, 2018 02:38
First HTML/CSS Project
<!DOCTYPE html>
<head>
<title>Anna Dowlin</title>
<style>
body {
text-align: center;
background: url("http://dash.ga.co/assets/anna-bg.png");
background-size: cover;
background-position: center;
color: white;
@JL-Cox
JL-Cox / JL's_Website.html
Last active July 3, 2018 23:17
JL's Website
<head>
<title>JL's Website</title>
<style>
body {
text-align: center;
background: url("http://i.imgur.com/cyrmjG6.jpg");
background-position: center;
background-size: cover;
font-family: Helvetica;
color: white;
@JL-Cox
JL-Cox / CodeWarsKata_MeanOfArray_06272018.py
Last active July 3, 2018 23:17
CodeWarsKata_MeanOfArray_06272018
def get_average(marks):
a = 0
for eachNumber in mark:
a += eachNumber
a = a//len(marks)
print("a")
return a
@JL-Cox
JL-Cox / CodeWarsKata_CenturyFromYear_06282018.py
Created June 28, 2018 00:02
CodeWarsKata_CenturyFromYear_06282018
def century(year):
if year % 100 == 0:
year = year // 100
else:
year = year // 100 + 1
return year
@JL-Cox
JL-Cox / CodeWarsKata_FakeBinary_06272018.py
Last active July 3, 2018 23:17
CodeWarsKata_FakeBinary_06272018
def fake_bin(x):
print(x)
x = list(map(int, x))
for i in range(len(x)):
if x[i] < 5:
x[i] = 0
else:
x[i] = 1
x = list(map(str,x))
x = "".join(x)
@JL-Cox
JL-Cox / CodeWarsKata_DetermineOffspringSex_06272018.py
Created June 28, 2018 02:58
CodeWarsKata_DetermineOffspringSex_06272018
def chromosome_check(sperm):
if 'Y' in sperm:
return 'Congratulations! You\'re going to have a son.'
else:
return 'Congratulations! You\'re going to have a daughter.'