Skip to content

Instantly share code, notes, and snippets.

💭
thinking of a status

Daniel Carl Jones dannycjones

Block or report user

Report or block dannycjones

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hs-committee-roles-1819.md

Roles

President

The leader of the society. Tasked with setting the vision and leading strategic direction.

  • Always thinking ahead.
  • Always looking for opportunities to pursue. e.g. MLH have released a new workshop, how should we act on this?
  • ‎Always looking for ways to improve the society as a whole. What could we improve on for our next event?
  • Delegate across the committee as equally as possible, ensuring no one person is burdened with too much work.
View keybase.md

Keybase proof

I hereby claim:

  • I am dannycjones on github.
  • I am dannycjones (https://keybase.io/dannycjones) on keybase.
  • I have a public key ASDEcdspZKj73gUaEZ40ryBrnpGmOZh0tJA_WpvR6Cnj1Ao

To claim this, I am signing this object:

View FizzBuzz.hs
fizzBuzz :: [Int] -> [String]
fizzBuzz listOfNumbers = [fizzify x | x <- listOfNumbers]
where
fizzify :: Int -> String
fizzify num
| fizz && buzz = "FizzBuzz"
| fizz = "Fizz"
| buzz = "Buzz"
| otherwise = show num
where fizz = num `mod` 3 == 0
@dannycjones
dannycjones / euclids.rb
Last active Jun 2, 2016
An implementation of Euclid's algorithm in Ruby finding the highest common factor for two numbers.
View euclids.rb
def euclids(a, b) # Euclid's Algorithm
quotient = a / b
remainder = a % b # modulo
puts "#{a} = #{quotient}(#{b}) + #{remainder} [hcf(#{a}, #{b})]"
return b if remainder.zero?
euclids(b, remainder)
end
def hcf(a, b)
euclids(a, b)
View harlemShake.js
/* Credit to https://gist.github.com/commadelimited/4958196 for the first section (slightly modified) */
function harlemShake() {
function c() {
var e = document.createElement("link");
e.setAttribute("type", "text/css");
e.setAttribute("rel", "stylesheet");
e.setAttribute("href", f);
e.setAttribute("class", l);
document.body.appendChild(e)
View specialRep.js
console.info("specialRep Javascript Loaded.");
var specialRepUsers = [];
var specialRepInterval;
function UserObj(memberID, repMsg, background, prob) {
this.memberID = memberID;
this.repMessage = repMsg;
this.bgColor = background;
this.prob = prob;
View tumblr-redirect.html
<!DOCTYPE html>
<html>
<head>
{MobileAppHeaders}
<meta charset="utf-8">
<title>{Title}</title>
{block:Description}
<meta name="description" content="{MetaDescription}"/>
{/block:Description}
View redirect.tumblr.html
<!DOCTYPE html>
<!--[if lt IE 7]><html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="lt-ie10 lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html class="lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html class="lt-ie10"> <![endif]-->
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
<head>
{MobileAppHeaders}
<meta charset="utf-8">
<title>Redirecting...</title>
View username_colour_change.css
@-webkit-keyframes rainbow {
0% {color: #39f;
text-shadow: 0px 0px 6px #39f;}
15% {color: #8bc5d1;
text-shadow: 0px 0px 6px #8bc5d1;}
30% {color: #f8cb4a;
text-shadow: 0px 0px 6px #f8cb4a;}
45% {color: #95b850;
text-shadow: 0px 0px 6px #95b850;}
60% {color: #944893;
View only-show-copyright-mobile.css
You can’t perform that action at this time.