Skip to content
Snippets Groups Projects
Unverified Commit 4c7b26b0 authored by Luke Bennett's avatar Luke Bennett
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Showing with 528 additions and 0 deletions
<!DOCTYPE html>
<html>
<head>
<title>We're sorry, but something went wrong (500)</title>
<link href="/static.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>500</h1>
<h3>We're sorry, but something went wrong.</h3>
<hr/>
<p>Please contact your GitLab administrator if this problem persists.</p>
</body>
</html>
File added
images/jpg/mountain_lion.jpg

109 KiB

images/png/logo-black.png

2.73 KiB

images/png/logo-white.png

7.33 KiB

File added
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="1300px" height="680px" viewBox="0 0 1300 680" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<!-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch -->
<title>wm</title>
<desc>Created with Sketch.</desc>
<defs>
<path id="path-1" d="M-69.8,1023.54607 L1675.19996,1023.54607 L1675.19996,0 L-69.8,0 L-69.8,1023.54607 L-69.8,1023.54607 Z"></path>
</defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<path d="M1300,680 L0,680 L0,0 L1300,0 L1300,680 L1300,680 Z" id="bg" fill="#30353E" sketch:type="MSShapeGroup"></path>
<g id="gitlab_logo" sketch:type="MSLayerGroup" transform="translate(-262.000000, -172.000000)">
<g id="g10" transform="translate(872.500000, 512.354581) scale(1, -1) translate(-872.500000, -512.354581) translate(0.000000, 0.290751)">
<g id="g12" transform="translate(1218.022652, 440.744871)" fill="#8C929D" sketch:type="MSShapeGroup">
<path d="M-50.0233338,141.900706 L-69.07059,141.900706 L-69.0100967,0.155858152 L8.04444805,0.155858152 L8.04444805,17.6840847 L-49.9628405,17.6840847 L-50.0233338,141.900706 L-50.0233338,141.900706 Z" id="path14"></path>
</g>
<g id="g16">
<g id="g18-Clipped">
<mask id="mask-2" sketch:name="path22" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="path22"></g>
<g id="g18" mask="url(#mask-2)">
<g transform="translate(382.736659, 312.879425)">
<g id="g24" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(852.718192, 124.992771)">
<path d="M63.9833317,27.9148929 C59.2218085,22.9379001 51.2134221,17.9597442 40.3909323,17.9597442 C25.8888194,17.9597442 20.0453962,25.1013043 20.0453962,34.4074318 C20.0453962,48.4730484 29.7848226,55.1819277 50.5642821,55.1819277 C54.4602853,55.1819277 60.7364685,54.7492469 63.9833317,54.1002256 L63.9833317,27.9148929 L63.9833317,27.9148929 Z M44.2869356,113.827628 C28.9053426,113.827628 14.7975996,108.376082 3.78897657,99.301416 L10.5211864,87.6422957 C18.3131929,92.1866076 27.8374026,96.7320827 41.4728323,96.7320827 C57.0568452,96.7320827 63.9833317,88.7239978 63.9833317,75.3074024 L63.9833317,68.3821827 C60.9528485,69.0312039 54.6766653,69.4650479 50.7806621,69.4650479 C17.4476729,69.4650479 0.565379986,57.7791759 0.565379986,33.3245665 C0.565379986,11.4683685 13.9844297,0.43151772 34.3299658,0.43151772 C48.0351955,0.43151772 61.1692285,6.70771614 65.7143717,16.8780421 L69.1776149,3.02876588 L82.5978279,3.02876588 L82.5978279,75.5237428 C82.5978279,98.462806 72.6408582,113.827628 44.2869356,113.827628 L44.2869356,113.827628 Z" id="path26" fill="#8C929D" sketch:type="MSShapeGroup"></path>
</g>
<g id="g28" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(959.546624, 124.857151)">
<path d="M37.2266657,17.4468081 C30.0837992,17.4468081 23.8064527,18.3121698 19.0449295,20.4767371 L19.0449295,79.2306079 L19.0449295,86.0464943 C25.538656,91.457331 33.5470425,95.3526217 43.7203922,95.3526217 C62.1173451,95.3526217 69.2602116,82.3687072 69.2602116,61.3767077 C69.2602116,31.5135879 57.7885819,17.4468081 37.2266657,17.4468081 M45.2315622,113.963713 C28.208506,113.963713 19.0449295,102.384849 19.0449295,102.384849 L19.0449295,120.67143 L18.9844362,144.908535 L10.3967097,144.908535 L0.371103324,144.908535 L0.431596656,6.62629771 C9.73826309,2.73100702 22.5081728,0.567602823 36.3611458,0.567602823 C71.8579349,0.567602823 88.9566078,23.2891625 88.9566078,62.4584098 C88.9566078,93.4043948 73.1527248,113.963713 45.2315622,113.963713" id="path30" fill="#8C929D" sketch:type="MSShapeGroup"></path>
</g>
<g id="g32" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(509.576747, 125.294950)">
<path d="M68.636665,129.10638 C85.5189579,129.10638 96.3414476,123.480366 103.484314,117.853189 L111.669527,132.029302 C100.513161,141.811145 85.5073245,147.06845 69.5021849,147.06845 C29.0274926,147.06845 0.673569983,122.3975 0.673569983,72.6252464 C0.673569983,20.4709215 31.2622559,0.12910638 66.2553217,0.12910638 C83.7879179,0.12910638 98.7227909,4.24073748 108.462217,8.35236859 L108.063194,64.0763105 L108.063194,70.6502677 L108.063194,81.6057001 L56.1168719,81.6057001 L56.1168719,64.0763105 L89.2323178,64.0763105 L89.6313411,21.7701271 C85.3025779,19.6055598 77.7269514,17.8748364 67.554765,17.8748364 C39.4172223,17.8748364 20.5863462,35.5717154 20.5863462,72.8415868 C20.5863462,110.711628 40.0663623,129.10638 68.636665,129.10638" id="path34" fill="#8C929D" sketch:type="MSShapeGroup"></path>
</g>
<g id="g36" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(692.388992, 124.376085)">
<path d="M19.7766662,145.390067 L1.16216997,145.390067 L1.2226633,121.585642 L1.2226633,111.846834 L1.2226633,106.170806 L1.2226633,96.2656714 L1.2226633,39.5681976 L1.2226633,39.3518572 C1.2226633,16.4127939 11.1796331,1.04797161 39.5335557,1.04797161 C43.4504989,1.04797161 47.2836822,1.40388649 51.0051854,2.07965952 L51.0051854,18.7925385 C48.3109055,18.3796307 45.4351455,18.1446804 42.3476589,18.1446804 C26.763646,18.1446804 19.8371595,26.1516022 19.8371595,39.5681976 L19.8371595,96.2656714 L51.0051854,96.2656714 L51.0051854,111.846834 L19.8371595,111.846834 L19.7766662,145.390067 L19.7766662,145.390067 Z" id="path38" fill="#8C929D" sketch:type="MSShapeGroup"></path>
</g>
<path d="M646.318899,128.021188 L664.933395,128.021188 L664.933395,236.223966 L646.318899,236.223966 L646.318899,128.021188 L646.318899,128.021188 Z" id="path40" fill="#8C929D" sketch:type="MSShapeGroup"></path>
<path d="M646.318899,251.154944 L664.933395,251.154944 L664.933395,269.766036 L646.318899,269.766036 L646.318899,251.154944 L646.318899,251.154944 Z" id="path42" fill="#8C929D" sketch:type="MSShapeGroup"></path>
<g id="g44" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(0.464170, 0.676006)">
<path d="M429.269989,169.815599 L405.225053,243.802859 L357.571431,390.440955 C355.120288,397.984955 344.444378,397.984955 341.992071,390.440955 L294.337286,243.802859 L136.094873,243.802859 L88.4389245,390.440955 C85.9877812,397.984955 75.3118715,397.984955 72.8595648,390.440955 L25.2059427,243.802859 L1.16216997,169.815599 C-1.03187664,163.067173 1.37156997,155.674379 7.11261982,151.503429 L215.215498,0.336141836 L423.319539,151.503429 C429.060589,155.674379 431.462873,163.067173 429.269989,169.815599" id="path46" fill="#FC6D26" sketch:type="MSShapeGroup"></path>
</g>
<g id="g48" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(135.410135, 1.012147)">
<path d="M80.269998,0 L80.269998,0 L159.391786,243.466717 L1.14820997,243.466717 L80.269998,0 L80.269998,0 Z" id="path50" fill="#E24329" sketch:type="MSShapeGroup"></path>
</g>
<g id="g52" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(215.680133, 1.012147)">
<g id="path54"></g>
</g>
<g id="g56" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(24.893471, 1.012613)">
<path d="M190.786662,0 L111.664874,243.465554 L0.777106647,243.465554 L190.786662,0 L190.786662,0 Z" id="path58" fill="#FC6D26" sketch:type="MSShapeGroup"></path>
</g>
<g id="g60" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(215.680133, 1.012613)">
<g id="path62"></g>
</g>
<g id="g64" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(0.077245, 0.223203)">
<path d="M25.5933327,244.255313 L25.5933327,244.255313 L1.54839663,170.268052 C-0.644486651,163.519627 1.75779662,156.126833 7.50000981,151.957046 L215.602888,0.789758846 L25.5933327,244.255313 L25.5933327,244.255313 Z" id="path66" fill="#FCA326" sketch:type="MSShapeGroup"></path>
</g>
<g id="g68" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(215.680133, 1.012147)">
<g id="path70"></g>
</g>
<g id="g72" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(25.670578, 244.478283)">
<path d="M0,0 L110.887767,0 L63.2329818,146.638096 C60.7806751,154.183259 50.1047654,154.183259 47.6536221,146.638096 L0,0 L0,0 Z" id="path74" fill="#E24329" sketch:type="MSShapeGroup"></path>
</g>
<g id="g76" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(215.680133, 1.012613)">
<path d="M0,0 L79.121788,243.465554 L190.009555,243.465554 L0,0 L0,0 Z" id="path78" fill="#FC6D26" sketch:type="MSShapeGroup"></path>
</g>
<g id="g80" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(214.902910, 0.223203)">
<path d="M190.786662,244.255313 L190.786662,244.255313 L214.831598,170.268052 C217.024481,163.519627 214.622198,156.126833 208.879985,151.957046 L0.777106647,0.789758846 L190.786662,244.255313 L190.786662,244.255313 Z" id="path82" fill="#FCA326" sketch:type="MSShapeGroup"></path>
</g>
<g id="g84" stroke-width="1" fill="none" sketch:type="MSLayerGroup" transform="translate(294.009575, 244.478283)">
<path d="M111.679997,0 L0.79222998,0 L48.4470155,146.638096 C50.8993221,154.183259 61.5752318,154.183259 64.0263751,146.638096 L111.679997,0 L111.679997,0 Z" id="path86" fill="#E24329" sketch:type="MSShapeGroup"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery.ui.all
//= require jquery_ujs
//= require jquery.cookie
//= require jquery.endless-scroll
//= require jquery.highlight
//= require jquery.history
//= require jquery.waitforimages
//= require jquery.atwho
//= require jquery.scrollto
//= require jquery.blockUI
//= require turbolinks
//= require jquery.turbolinks
//= require bootstrap
//= require modernizr
//= require select2
//= require raphael
//= require g.raphael-min
//= require g.bar-min
//= require branch-graph
//= require highlightjs.min
//= require ace/ace
//= require_tree .
//= require d3
//= require underscore
class Branch {
constructor(name) {
this.name = name;
this.fullName = `full ${name}`;
}
}
export default Branch;
class Commit
constructor: ->
$('.files .diff-file').each ->
new CommitFile(@)
@Commit = Commit
\ No newline at end of file
File added
This diff is collapsed.
File added
from tutor import check
print('Hello, World!')
# This is a comment, it isn't run as code, but often they are helpful
1 + 1
8 + 6*2*3 - (15 - 13)
42 + 3.149 + -1
meal = 200.00
# as a decimal, 10% would be 0.1
tip_percent = 0.10
meal * tip_percent
meal = 200.00
# as integer, 10% would be 10
tip_percent = 10
meal * tip_percent / 100
meal = 200.00
print(meal)
meal = "Hello, World!"
print(meal)
gibberish
*adsflf_
print('Hello'
1v34
2000 / 0
print('Hello, World!)
aswer = 3 * 8
print(answer)
"Hello, World!"
your_name = "Albert O'Connor"
print("Hello, ")
print(your_name)
dir("Hello, World!")
string = "Hello, World"
string.upper()
string = "Hello, World"
string.lower()
"Hello, World".upper()
your_name = "Albert O'Connor"
string = "Hello, {0}!"
print(string.format(your_name))
print("Hello, {0}!".format("Albert O'Connor"))
"{0} likes {1}".format("Albert O'Connor", 'Python')
print("200 University Ave. Waterloo, ON")
# Edit this string
template ="{0} {1} {2} {3}"
# Leave this alone please, it will help you as you go through the exercise
check('p1', template.format("alice@domain.org", "bob@domain.org", "Alice's Subject", "This is my one line message!"))
False is False
True is True
True is False
true is False
1 > 2
"Cool".startswith("C")
"Cool".endswith("C")
"oo" in "Cool"
42 == 1 # note the double equals sign for equality
condition = 1 > 2
if condition:
print("Condition is True")
else:
print("Condition is False")
condition = True
if condition:
print("Condition is True")
else:
print("Condition is False")
print("Condition is True or False, either way this is outputted")
# Edit the values of these 3 variables
boolean_literal = False
number = 8
string_literal = "I like to count sheep before bed."
# Leave this code the same please
if number > 10 and boolean_literal and "cows" in string_literal:
print("Success!")
else:
print("Try again!")
# This just provides some hints
check("p3", (number, boolean_literal, string_literal))
# The empty list
[]
["Milk", "Eggs", "Bacon"]
[1,2,3]
[True, 0, "Awesome"]
your_name = "Albert O'Connor"
awesome_people = ["Eric Idle", your_name]
print(awesome_people)
dir([])
your_name = "Albert O'Connor"
awesome_people = ["Eric Idle", your_name]
awesome_people.append("John Cleese")
print(awesome_people)
awesome_people[0]
print("These people are awesome: {0}, {1}, {2}".format(awesome_people[0], awesome_people[1], awesome_people[2]))
your_name = "Albert O'Connor"
awesome_people = ["Eric Idle", your_name]
awesome_people.append("John Cleese")
for person in awesome_people:
print(person)
person = awesome_people[0]
print(person)
person = awesome_people[1]
print(person)
person = awesome_people[2]
print(person)
range(0,10)
for number in range(0,10):
print("{0} squared is {1}".format(number, number*number))
# Edit the contents of this list
number_list = []
# Leave this line alone please
check("p4", number_list)
{"Python": "An awesome programming language",
"Monty Python": "A british comedy troupe"}
our_dictionary = {
"Python": "An awesome programming language",
"Monty Python": "A british comedy troupe"
}
our_dictionary["Python"]
for key in our_dictionary:
print('The Key is "{0}" and the value is "{1}"'.format(key, our_dictionary[key]))
print('Hello, {name}! Your favorite color is {favorite_color}.'.format(name="Albert O'Connor",
favorite_color='green'))
info = {'name': "Albert O'Connor",
'favorite color': 'green'}
print('Hello, {name}! Your favorite color is {favorite color}.'.format(**info))
data = {'name': "Albert O'Connor",
'favorite_color': 'green'}
print('{0}'.format(data)) # This prints the dictionary as text
data = {'name': "Albert O'Connor",
'favorite_color': 'green'}
print('{0}'.format(**data)) # This produces an error, there are no indexable arguments, just keyword
data = {'name': "Albert O'Connor",
'favorite_color': 'green'}
print('{0}'.format('Eric!', **data)) # Eric is the 0th argument, all the keywords are ignored!
data = {'name': "Albert O'Connor",
'favorite_color': 'green'}
# data is passed as indexiable so there is no keyword arguments.
print('Hello, {name}! Your favorite color is {favorite_color}.'.format(data))
data = {'name': "Albert O'Connor",
'favorite_color': 'green'}
# There we go, name and favorite_color are passed as keywords.
print('Hello, {name}! Your favorite color is {favorite_color}.'.format(**data))
data = {'name': "Albert O'Connor",
'favorite_color': 'green'}
# data is passed as keyword, but doesn't have the key 'pet_name'.
print('{pet_name}'.format(**data))
# Edit with the values you want.
entry_1 = {'name': "",
'email': ""}
# Add the keys and values to this entry like above.
entry_2 = {}
print(entry_1)
print(entry_2)
entries = [entry_1,] # Edit this list to include both entries
print(entries)
# Edit this message
message = """To: {email}
Hey you,
How is the weather?
"""
print message
for entry in entries:
print(message) # Add .format with the right arguments
print("-"*40)
require 'fileutils'
require 'open3'
module Popen
extend self
def popen(cmd, path=nil)
unless cmd.is_a?(Array)
raise RuntimeError, "System commands must be given as an array of strings"
end
path ||= Dir.pwd
vars = {
"PWD" => path
}
options = {
chdir: path
}
unless File.directory?(path)
FileUtils.mkdir_p(path)
end
@cmd_output = ""
@cmd_status = 0
Open3.popen3(vars, *cmd, options) do |stdin, stdout, stderr, wait_thr|
@cmd_output << stdout.read
@cmd_output << stderr.read
@cmd_status = wait_thr.value.exitstatus
end
return @cmd_output, @cmd_status
end
end
module Gitlab
module Regex
extend self
def username_regex
default_regex
end
def project_name_regex
/\A[a-zA-Z0-9][a-zA-Z0-9_\-\. ]*\z/
end
def name_regex
/\A[a-zA-Z0-9_\-\. ]*\z/
end
def path_regex
default_regex
end
def archive_formats_regex
/(zip|tar|7z|tar\.gz|tgz|gz|tar\.bz2|tbz|tbz2|tb2|bz2)/
end
def git_reference_regex
# Valid git ref regex, see:
# https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
%r{
(?!
(?# doesn't begins with)
\/| (?# rule #6)
(?# doesn't contain)
.*(?:
[\/.]\.| (?# rule #1,3)
\/\/| (?# rule #6)
@\{| (?# rule #8)
\\ (?# rule #9)
)
)
[^\000-\040\177~^:?*\[]+ (?# rule #4-5)
(?# doesn't end with)
(?<!\.lock) (?# rule #1)
(?<![\/.]) (?# rule #6-7)
}x
end
protected
def default_regex
/\A[.?]?[a-zA-Z0-9][a-zA-Z0-9_\-\.]*(?<!\.git)\z/
end
end
end
module Gitlab
class VersionInfo
include Comparable
attr_reader :major, :minor, :patch
def self.parse(str)
if str && m = str.match(/(\d+)\.(\d+)\.(\d+)/)
VersionInfo.new(m[1].to_i, m[2].to_i, m[3].to_i)
else
VersionInfo.new
end
end
def initialize(major = 0, minor = 0, patch = 0)
@major = major
@minor = minor
@patch = patch
end
def <=>(other)
return unless other.is_a? VersionInfo
return unless valid? && other.valid?
if other.major < @major
1
elsif @major < other.major
-1
elsif other.minor < @minor
1
elsif @minor < other.minor
-1
elsif other.patch < @patch
1
elsif @patch < other.patch
25
else
0
end
end
def to_s
if valid?
"%d.%d.%d" % [@major, @minor, @patch]
else
"Unknown"
end
end
def valid?
@major >= 0 && @minor >= 0 && @patch >= 0 && @major + @minor + @patch > 0
end
end
end
test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment