Skip to content

Commit 393c74c

Browse files
committed
created stuff
1 parent 6796d21 commit 393c74c

File tree

9 files changed

+875
-0
lines changed

9 files changed

+875
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
secret-ruby-code.rb
2+
Gemfile
3+
convert.js
4+
node_modules
5+
node_modules/*

Gemfile.lock

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
charlock_holmes (0.7.5)
5+
commonmarker (0.17.2)
6+
ruby-enum (~> 0.5)
7+
crass (1.0.2)
8+
escape_utils (1.1.1)
9+
gemoji (3.0.0)
10+
github-linguist (5.2.0)
11+
charlock_holmes (~> 0.7.3)
12+
escape_utils (~> 1.1.0)
13+
mime-types (>= 1.19)
14+
rugged (>= 0.25.1)
15+
i18n (0.8.6)
16+
mime-types (3.1)
17+
mime-types-data (~> 3.2015)
18+
mime-types-data (3.2016.0521)
19+
mini_portile2 (2.2.0)
20+
nokogiri (1.8.0)
21+
mini_portile2 (~> 2.2.0)
22+
nokogumbo (1.4.13)
23+
nokogiri
24+
ruby-enum (0.7.1)
25+
i18n
26+
rugged (0.26.0)
27+
sanitize (4.5.0)
28+
crass (~> 1.0.2)
29+
nokogiri (>= 1.4.4)
30+
nokogumbo (~> 1.4.1)
31+
32+
PLATFORMS
33+
ruby
34+
35+
DEPENDENCIES
36+
commonmarker
37+
gemoji
38+
github-linguist
39+
sanitize
40+
41+
BUNDLED WITH
42+
1.15.3

README.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<link rel="stylesheet" href="github.css">
5+
</head>
6+
<body>
7+
<h1 id="chicoacmcom">chico-acm.com</h1>
8+
<p>The place where our html files and assets will live!</p>
9+
<p>Chico-acm.com is designed as a place to put all the assets and markdown for any pages we want to host. We're focused mainly on algorithms, so I'll take care of all the hosting and routes and static assets and all of that nonsense! In order to reduce the workload on me however I ask you follow the contribution guides below! Feel free to ping me on slack! (you can sign up on chicoacm.slack.com with your @mail.csuchico.edu account)</p>
10+
<p>Thanks!
11+
~ Matt</p>
12+
<h2 id="anoteonmarkdown">A note on Markdown:</h2>
13+
<p>In order to make contributing as easy as possible, we're going to use github-flavored markdown. This is the same format that this README.md uses itself! There are a few things you need to know about markdown:</p>
14+
<p>Triple ticks indicate a preformatted block, useful for code. You can change the highlighting by putting the language immediately after the first set of ticks:</p>
15+
<p>"```python</p>
16+
<p>def foo:
17+
return bar</p>
18+
<p>"```<br />
19+
(quotes are for example only)</p>
20+
<p>will produce:</p>
21+
<pre><code class="python language-python">def foo:
22+
return bar
23+
</code></pre>
24+
<p>Links can be imbedded with this syntax: <code>[link text](https://url/for/link)</code></p>
25+
<p>Images can be imbedded with the following syntax <code>![short text description](https://link/to/image)</code></p>
26+
<p>And you can always use regular old html (as long as not scripts, cdns, etc, stylesheets, and all of that jazz)</p>
27+
<p>More info on markdown can be found <a href="https://daringfireball.net/projects/markdown/syntax">here</a>!</p>
28+
<h2 id="contributionguidelines">Contribution guidelines:</h2>
29+
<p>To submit your content to chico-acm.com I ask you do the following:</p>
30+
<ol>
31+
<li><p>Keep it clean. No NSFW text, images, links, etc.</p></li>
32+
<li><p>Make your additions in a fork on your github account, and submit a pull request with <strong>ONLY</strong> your new files in it. Any pull requests that have changes to files that aren't yours will be promplty rejected</p></li>
33+
<li><p>Make your writeup is a single page of markdown, you can include links, images, and code and go on as long as you want</p></li>
34+
<li><p>All images are referenced <a href="https://stackoverflow.com/questions/2005079/absolute-vs-relative-urls">relatively</a> to an image file you include in the <code>/images</code> directory. like <code>![hello world image](/images/hello_world.jpg)</code></p></li>
35+
</ol>
36+
<p><br/></p>
37+
<p><center><img src="/images/hello-world.jpg" alt="hello world image" /></center></p>
38+
<p><br/></p>
39+
<p>Use common sense when posting, I will use my own judgement when determing what to post, but this is for ACM-related materials. Nothing advertising products, personal or political beliefs, or any solicitation will be permitted. Just algorithms. Any discussion can happen in the slack channel, no comments here!</p>
40+
</body>

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,58 @@
11
# chico-acm.com
22
The place where our html files and assets will live!
3+
4+
Chico-acm.com is designed as a place to put all the assets and markdown for any pages we want to host. We're focused mainly on algorithms, so I'll take care of all the hosting and routes and static assets and all of that nonsense! In order to reduce the workload on me however I ask you follow the contribution guides below! Feel free to ping me on slack! (you can sign up on chicoacm.slack.com with your @mail.csuchico.edu account)
5+
6+
Thanks!
7+
~ Matt
8+
9+
### A note on Markdown:
10+
---
11+
12+
In order to make contributing as easy as possible, we're going to use github-flavored markdown. This is the same format that this README.md uses itself! There are a few things you need to know about markdown:
13+
14+
Triple ticks indicate a preformatted block, useful for code. You can change the highlighting by putting the language immediately after the first set of ticks:
15+
16+
"```python
17+
18+
def foo:
19+
return bar
20+
21+
"```
22+
(quotes are for example only)
23+
24+
will produce:
25+
26+
```python
27+
def foo:
28+
return bar
29+
```
30+
31+
Links can be imbedded with this syntax: `[link text](https://url/for/link)`
32+
33+
Images can be imbedded with the following syntax `![short text description](https://link/to/image)`
34+
35+
And you can always use regular old html (as long as not scripts, cdns, etc, stylesheets, and all of that jazz)
36+
37+
More info on markdown can be found [here](https://daringfireball.net/projects/markdown/syntax)!
38+
39+
### Contribution guidelines:
40+
---
41+
42+
To submit your content to chico-acm.com I ask you do the following:
43+
44+
1. Keep it clean. No NSFW text, images, links, etc.
45+
46+
2. Make your additions in a fork on your github account, and submit a pull request with **ONLY** your new files in it. Any pull requests that have changes to files that aren't yours will be promplty rejected
47+
48+
3. Make your writeup is a single page of markdown, you can include links, images, and code and go on as long as you want
49+
50+
4. All images are referenced [relatively](https://stackoverflow.com/questions/2005079/absolute-vs-relative-urls) to an image file you include in the `/images` directory. like `![hello world image](/images/hello_world.jpg)`
51+
52+
<br/>
53+
54+
<center>![hello world image](/images/hello-world.jpg)</center>
55+
56+
<br/>
57+
58+
Use common sense when posting, I will use my own judgement when determing what to post, but this is for ACM-related materials. Nothing advertising products, personal or political beliefs, or any solicitation will be permitted. Just algorithms. Any discussion can happen in the slack channel, no comments here!

convert.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
puts "Enter the name of the file you want to convert:"
2+
3+
input = gets.chomp
4+
5+
output = input.sub('.md', '.html')
6+
7+
system("showdown", "makehtml", "-i", "#{input}", "-o", "#{output}")

0 commit comments

Comments
 (0)