Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add friday hacks header shortcode
Browse files Browse the repository at this point in the history
Introduce shortcode and new script

Add shortcode to legacy posts

Add friday hack footer

PR changes

Add requirements.txt
Advay Pal authored and li-kai committed Aug 9, 2017

Verified

This commit was signed with the committer’s verified signature.
jschlyter Jakob Schlyter
1 parent 87fe982 commit 82ef591
Showing 71 changed files with 183 additions and 287 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -42,12 +42,17 @@ It also contains a field `start_date` which should be the date-time of the first

About writing posts: https://gohugo.io/content/

If you are write those generic posts about Friday hacks, please run:
If you are write those generic posts about Friday hacks, please use the script `scripts/gen_fh.py` - yep, it's in Python yay! So install Python first. You can then use pip to install the packages in requirements.txt.

To use the script, first make sure you have filled up the Friday hacks entry in `data/friday_hacks.yml`, then just run it.

```bash
npm run friday-hacks <Title> <Your name>
$ cd scripts
$ python gen_fh.py
```

It will ask for you name (as the author), and generates the md file in `post/content`. Now go ahead and add in more details to the post.

## Final words

If you dislike any parts of this website, just clone it and push your changes! Make sure you update `README.md`, though, or the octopus will be really pissed off.
6 changes: 1 addition & 5 deletions content/post/2014-08-15-friday-hacks-71-Aug-15.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2014/08/15/friday-hacks-71-Aug-15/

For our first Friday Hack of AY2014/2015, we will have our Welcome Tea followed by an introduction to open source development by NUSMods creators, Beng and Yang Shun. See you there!

{% capture venue %}
{{ 'Practice Room 1, Stephen Riady Centre (Level 3), UTown, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Practice Room 1, Stephen Riady Centre (Level 3), UTown, NUS" date="August 15" %}}

### Introduction to NUS Hackers

6 changes: 1 addition & 5 deletions content/post/2014-08-22-friday-hacks-72-Aug-22.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2014/08/22/friday-hacks-72-Aug-22/

This week's Friday Hacks is security themed! The Research and Analysis Team from the Singapore Infocomm Technology Security Authority will be here to give us two hands-on talks. See you there!

{% capture venue %}
{{ 'Video Conferencing Room, #02-13, COM1, 13 Computing Drive, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Video Conferencing Room, #02-13, COM1, 13 Computing Drive, NUS" date="August 22" %}}

### Playing CTF for Fun & Profit

6 changes: 1 addition & 5 deletions content/post/2014-08-29-friday-hacks-73-Aug-29.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2014/08/29/friday-hacks-73-Aug-29/

This week, Shan will be sharing about his work to optimize underwater modems, and how to get started with electronics. We're also giving away a Raspberry Pi to one lucky attendee, see you there!

{% capture venue %}
{{ 'Video Conferencing Room, #02-13, COM1, 13 Computing Drive, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Video Conferencing Room, #02-13, COM1, 13 Computing Drive, NUS" date="August 29" %}}

### Optimizing Underwater Modems and Other Hardware Fun!

6 changes: 1 addition & 5 deletions content/post/2014-09-05-friday-hacks-74-Sep-5.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2014/09/05/friday-hacks-74-Sep-5/

Gérard, chief engineer at Airbus Defence & Space, will be sharing about Open Source Intelligence and how the WebLab approach is used to efficiently mine the web.

{% capture venue %}
{{ 'SR4, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR4, Town Plaza (Level 2), University Town, NUS" date="September 5" %}}

### WebLab Platform for Semantic Media Mining

6 changes: 1 addition & 5 deletions content/post/2014-09-12-friday-hacks-75-Sep-12.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2014/09/12/friday-hacks-75-Sep-12/

Learn about machine learning this week! Shamraz will share about using ML in geography and Shawn will show you how to use ML with scikit-learn.

{% capture venue %}
{{ 'SR4, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR4, Town Plaza (Level 2), University Town, NUS" date="September 12" %}}

### Machine Learning and Environmental Modelling

6 changes: 1 addition & 5 deletions content/post/2014-09-19-friday-hacks-76-Sep-19.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2014/09/19/friday-hacks-76-Sep-19/

... let's play a game. Solve programming challenges this week at Friday Hacks, with a twist – shortest solutions win! JavaScript, Python and others accepted for Code Golf.

{% capture venue %}
{{ 'SR4, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR4, Town Plaza (Level 2), University Town, NUS" date="September 19" %}}

### Code Golf

6 changes: 1 addition & 5 deletions content/post/2014-10-03-friday-hacks-77-Oct-3.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2014/10/03/friday-hacks-77-Oct-3/

At this week's session, find out about how autonomous underwater vehicles work! Alex will be sharing about control systems, computer vision with openCV, acoustic localization and autonomous mission control.

{% capture venue %}
{{ 'SR3, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza (Level 2), University Town, NUS" date="October 3" %}}

### Building Autonomous Underwater Vehicles

5 changes: 1 addition & 4 deletions content/post/2014-10-10-friday-hacks-78-Oct-10.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2014/10/10/friday-hacks-78-Oct-10/

This week's Friday Hacks is about cybercrime and NFC security by Vicky, Palo Alto Networks engineer, and Jeremias, NUS student, respectively!

{% capture venue %}
{{ 'SR3, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza (Level 2), University Town, NUS" date="October 10" %}}

### Tales of an InfoStealer

5 changes: 1 addition & 4 deletions content/post/2014-10-17-friday-hacks-79-Oct-17.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2014/10/17/friday-hacks-79-Oct-17/

Meet Palantir at next week's Friday Hacks!

{% capture venue %}
{{ 'LT50, Stephen Riady Centre (Level 1), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="LT50, Stephen Riady Centre (Level 1), University Town, NUS" date="October 17" %}}

### PUSH - Solve hard problems. Ship great product. See your impact.

5 changes: 1 addition & 4 deletions content/post/2014-10-24-friday-hacks-80-Oct-24.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2014/10/24/friday-hacks-80-Oct-24/

Get all your questions about internships answered at next week's Friday Hacks! There will be a Q&A session after.

{% capture venue %}
{{ 'SR3, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza (Level 2), University Town, NUS" date="October 24" %}}

### Internships 101

6 changes: 1 addition & 5 deletions content/post/2014-10-31-friday-hacks-81-Oct-31.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2014/10/31/friday-hacks-81-Oct-31/

Ever written code only to realise later it doesn't work for some particular case? Find out about some common assumptions developers make and what to do instead!

{% capture venue %}
{{ 'SR3, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza (Level 2), University Town, NUS" date="October 31" %}}

### In Murphy('s Law) We Trust

5 changes: 1 addition & 4 deletions content/post/2014-11-07-friday-hacks-82-Nov-07.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2014/11/07/friday-hacks-82-Nov-07/

There's more to hacking than software – get started with electronics at this Friday Hacks! Everyone* walks away with their own noise synthesizers and one lucky attendee will win a Raspberry Pi!

{% capture venue %}
{{ 'SR3, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza (Level 2), University Town, NUS" date="November 7" %}}

### Start Your Electronics Journey

5 changes: 1 addition & 4 deletions content/post/2014-11-14-friday-hacks-83-Nov-14.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2014/11/14/friday-hacks-83-Nov-14/

Join us for the last Friday Hacks of the semester this week! Find out what your peers have been up to, and take part in NUS Hackers' first Mystery Event! <strong>Please RSVP</strong> on <a href="https://www.facebook.com/events/368317163343825/">our Facebook event</a>. It'll help us in estimating numbers for the Mystery Event!

{% capture venue %}
{{ 'SR3, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza (Level 2), University Town, NUS" date="November 14" %}}

### Lightning Talks

5 changes: 1 addition & 4 deletions content/post/2015-01-15-friday-hacks-84-Jan-16.md
Original file line number Diff line number Diff line change
@@ -9,10 +9,7 @@ Welcome back! For the first Friday Hacks of the semester, we have Benjamin Tan,
Software Engineer at Neo Innovation, Inc., sharing about a new programming
language named Elixir, and what interesting things can be done with it.

{% capture venue %}
{{ 'LT15, AS6, National University of Singapore' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="LT15, AS6, National University of Singapore" date="January 16" %}}

Facebook Event link: https://www.facebook.com/events/858661884184469/

5 changes: 1 addition & 4 deletions content/post/2015-01-19-friday-hacks-85-Jan-23.md
Original file line number Diff line number Diff line change
@@ -8,10 +8,7 @@ url: /2015/01/19/friday-hacks-85-Jan-23/
This Friday, we'll be having Sundaravalli Shriram from PayPal speaking about an
introduction to functional programming in Scala. See you there!

{% capture venue %}
{{ 'LT15, AS6, National University of Singapore' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="LT15, AS6, National University of Singapore" date="January 23" %}}

Facebook Event link: https://www.facebook.com/events/778300145578508

5 changes: 1 addition & 4 deletions content/post/2015-01-26-friday-hacks-86-Jan-30.md
Original file line number Diff line number Diff line change
@@ -9,10 +9,7 @@ We will be having two talks this Friday! One is on software (databases), the
other one is on hardware (Bluetooth), and both speakers are named Cedric. What
are the chances? See you there!

{% capture venue %}
{{ 'NUS Hackerspace, AS6 #02-09' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="NUS Hackerspace, AS6 #02-09" date="January 30" %}}

Facebook Event link: https://www.facebook.com/events/1630037577224179/

5 changes: 1 addition & 4 deletions content/post/2015-02-04-friday-hacks-87-Feb-06.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/02/04/friday-hacks-87-Feb-06/

This week's topic will be on an introduction to deep learning and neural networks by Shawn Tan. See you there!

{% capture venue %}
{{ 'SR3, Town Plaza, UTown' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, UTown" date="February 6" %}}

Facebook Event link: https://www.facebook.com/events/660494384072897

5 changes: 1 addition & 4 deletions content/post/2015-02-06-friday-hacks-88-Feb-13.md
Original file line number Diff line number Diff line change
@@ -8,10 +8,7 @@ url: /2015/02/06/friday-hacks-88-Feb-13/
Ever wanted to get involved in the tech/developer community but don't know where to
start? Come down to Friday Hacks this week to learn about it!

{% capture venue %}
{{ 'SR3, Town Plaza, UTown' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, UTown" date="February 13" %}}

Facebook Event link: https://www.facebook.com/events/411879552308839

5 changes: 1 addition & 4 deletions content/post/2015-03-03-friday-hacks-89-Mar-06.md
Original file line number Diff line number Diff line change
@@ -8,10 +8,7 @@ url: /2015/03/03/friday-hacks-89-Mar-06/
We're happy to have Haoyi, an engineer from Dropbox, speaking this week about the web
infrastructure at Dropbox. See you there!

{% capture venue %}
{{ 'SR3, Town Plaza, UTown' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, UTown" date="March 6" %}}

Facebook Event link: https://www.facebook.com/events/1411988652437251

5 changes: 1 addition & 4 deletions content/post/2015-03-16-friday-hacks-90-Mar-20.md
Original file line number Diff line number Diff line change
@@ -14,10 +14,7 @@ See you!

p.s. There will be a Facebook swag giveaway!

{% capture venue %}
{{ 'SR3, Town Plaza, UTown' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, UTown" date="March 20" %}}

Facebook Event link: https://www.facebook.com/events/352761291599919/

5 changes: 1 addition & 4 deletions content/post/2015-03-24-friday-hacks-91-Mar-27.md
Original file line number Diff line number Diff line change
@@ -10,10 +10,7 @@ they built and deployed a large scale web application, while Omer (Garena) will
be talking about Reactive Cocoa, a functional reactive framework for iOS and
OSX.

{% capture venue %}
{{ 'SR3, Town Plaza, UTown' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, UTown" date="March 27" %}}

Facebook Event link: https://www.facebook.com/events/1436223633336896/

5 changes: 1 addition & 4 deletions content/post/2015-04-07-friday-hacks-92-Apr-10.md
Original file line number Diff line number Diff line change
@@ -8,10 +8,7 @@ url: /2015/04/07/friday-hacks-92-Apr-10/
We'll be having three security researchers from the Ministry of Home Affairs --
Jacob, Glenn and Damian -- speaking about Web Security this week. See you!

{% capture venue %}
{{ 'SR3, Town Plaza, UTown' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, UTown" date="April 10" %}}

Facebook Event link: https://www.facebook.com/events/356672161209020/

5 changes: 1 addition & 4 deletions content/post/2015-04-13-friday-hacks-93-Apr-17.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/04/13/friday-hacks-93-Apr-17/

For the final Friday Hacks of the semester, we'll be having Melvin Zhang, lead architect from Cosmiqo International, and Mathieu Feulvarch, senior product architect from MyRepublic. See you!

{% capture venue %}
{{ 'SR3, Town Plaza, UTown' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, UTown" date="April 17" %}}

Facebook Event link: https://www.facebook.com/events/1569158963362746/

5 changes: 1 addition & 4 deletions content/post/2015-08-13-friday-hacks-94-Aug-21.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/08/13/friday-hacks-94-Aug-21/

Friday Hacks are back for this new academic year!

{% capture venue %}
{{ 'Seminar Room 1, School of Computing' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 1, School of Computing" date="August 21" %}}

Please join us in our Welcome Tea, where our president will share about what we do, the importance of fostering hacker culture in NUS and how to hack life!

5 changes: 1 addition & 4 deletions content/post/2015-08-22-friday-hacks-95-Aug-28.md
Original file line number Diff line number Diff line change
@@ -5,10 +5,7 @@ title: 'Friday Hacks #95, August 28'
url: /2015/08/22/friday-hacks-95-Aug-28/
---

{% capture venue %}
{{ 'Seminar Room 2, School of Computing' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 2, School of Computing" date="August 28" %}}

Facebook Event link: https://www.facebook.com/events/1618580021755297/

5 changes: 1 addition & 4 deletions content/post/2015-08-29-friday-hacks-96-Sept-4.md
Original file line number Diff line number Diff line change
@@ -5,10 +5,7 @@ title: 'Friday Hacks #96, Sept 4'
url: /2015/08/29/friday-hacks-96-Sept-4/
---

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="Sept 4" %}}

Facebook Event link: https://www.facebook.com/events/941100582619417/

5 changes: 1 addition & 4 deletions content/post/2015-09-14-friday-hacks-97-Sept-18.md
Original file line number Diff line number Diff line change
@@ -9,10 +9,7 @@ Ever wondered how PayPal or other large companies scale their infrastructure to

Jeremias Wong, a NUS Hackers coreteam member, will be speaking about his experience in Chaos Communication Camp, Berlin. CCC is one of the biggest hacker-centric camp in the world organized by [Chaos Computer Club](https://en.wikipedia.org/wiki/Chaos_Computer_Club).

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="Sept 18" %}}

Facebook Event link: [https://www.facebook.com/events/919696661422905/](https://www.facebook.com/events/919696661422905/)

5 changes: 1 addition & 4 deletions content/post/2015-09-29-friday-hacks-98-Oct-02.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/09/29/friday-hacks-98-Oct-02/

Members of SoC have no doubt used the SoC Printing app on Android/iOS before. Kheng Meng, a recent SoC graduate will be explaining the behind the scenes of the SoC Printing system as well as giving an introduction to Bluetooth Low Energy.

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="Oct 02" %}}

Facebook Event link: [https://www.facebook.com/events/1655751784694619/](https://www.facebook.com/events/1655751784694619/)

5 changes: 1 addition & 4 deletions content/post/2015-10-05-friday-hacks-99-Oct-09.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/10/05/friday-hacks-99-Oct-09/

We're very happy to have two recent graduates of NUS School of Computing to speak at this week's Friday Hacks about a very important programming language construct: the parser. Omer will be introducing what monads are and how you can use them to build parsers, while Richard will give an overview about his FYP that lets you parse and evaluate C code inline in vim.

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="Oct 09" %}}

Facebook Event link: https://www.facebook.com/events/525850107570346/

5 changes: 1 addition & 4 deletions content/post/2015-10-14-friday-hacks-100-Oct-16.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/10/14/friday-hacks-100-Oct-16/

NUS Hackers is celebrating our 100th Friday Hacks!

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header_fh_100.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="Oct 16" %}}

Facebook Event link: [https://www.facebook.com/events/834978463288543/](https://www.facebook.com/events/834978463288543/)

5 changes: 1 addition & 4 deletions content/post/2015-10-20-friday-hacks-101-Oct-23.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/10/20/friday-hacks-101-Oct-23/

Coming up in our 101th Friday Hacks, we have He Wei from Hopetechnik sharing on engineering solutions in his line of work as well as Dr. Swapan giving a talk about security issues and phishing.

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="Oct 23" %}}

Facebook Event link: [https://www.facebook.com/events/1484617121843664/](https://www.facebook.com/events/1484617121843664/)

5 changes: 1 addition & 4 deletions content/post/2015-10-27-friday-hacks-102-Oct-30.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/10/27/friday-hacks-102-Oct-30/

This week, our very own coreteam members will be sharing on their internship experiences overseas. Learn why you should do internships, how to choose and of course, how to get them! Ask questions of other students who have interned overseas at various companies including Facebook, Palantir, Apple, Twitter, Dropbox, and Viki.

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="Oct 30" %}}

Facebook Event link: [https://www.facebook.com/events/1691455717756645/](https://www.facebook.com/events/1691455717756645/)

5 changes: 1 addition & 4 deletions content/post/2015-11-03-friday-hacks-103-Nov-06.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2015/11/03/friday-hacks-103-Nov-06/

This week, we're focusing on education. Learn about the science of the mind and bring all your questions from engineering to machine learning to the director of engineering at Coursera.

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="Nov 06" %}}

Facebook Event link: [https://www.facebook.com/events/180677585609461/](https://www.facebook.com/events/180677585609461/)

5 changes: 1 addition & 4 deletions content/post/2015-11-10-friday-hacks-104-Nov-13.md
Original file line number Diff line number Diff line change
@@ -11,10 +11,7 @@ challenge this week, with a twist - shortest solutions win!

There will also be an afterparty to celebrate the end of the semester!

{% capture venue %}
{{ 'SR3, Town Plaza (Level 2), University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="November 13" %}}

### Code Golf

5 changes: 1 addition & 4 deletions content/post/2016-01-18-friday-hacks-105-Jan-22.md
Original file line number Diff line number Diff line change
@@ -9,10 +9,7 @@ Welcome back to a brand new semester! For our first Friday Hacks of the semester

Facebook event: https://www.facebook.com/events/1027250797369796/

{% capture venue %}
{{ 'Video Conferencing Room (COM1-02-13), School of Computing, National University of Singapore' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Video Conferencing Room (COM1-02-13), School of Computing, National University of Singapore" date="January 22nd" %}}

# That Roomba Raspberry Pi Kinect Hack

6 changes: 1 addition & 5 deletions content/post/2016-01-27-friday-hacks-106-Jan-29.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ For our second Friday Hacks of the semester, we're having Chee Aun, a web develo

Facebook Event link: [https://www.facebook.com/events/1694849550727367/](https://www.facebook.com/events/1694849550727367/)

{% capture venue %}
{{ 'Video Conferencing Room (COM1-02-13), School of Computing, National University of Singapore' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Video Conferencing Room (COM1-02-13), School of Computing, National University of Singapore" date="January 29th" %}}

# Building side projects: the timeline, triggers and stages that every builder has to experience.

6 changes: 1 addition & 5 deletions content/post/2016-02-08-friday-hacks-107-Feb-12.md
Original file line number Diff line number Diff line change
@@ -10,11 +10,7 @@ For our third Friday Hacks of the semester, we're having Eeshan and Shuvan, two
Facebook Event link:
[https://www.facebook.com/events/535705849936703/](https://www.facebook.com/events/535705849936703/)

{% capture venue %}
{{ 'Video Conferencing Room, COM1-02-13, School of Computing, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Video Conferencing Room (COM1-02-13), School of Computing, National University of Singapore" date="February 12th" %}}

# Secure, high-speed Wi-Fi using light-bulbs

6 changes: 1 addition & 5 deletions content/post/2016-02-26-friday-hacks-108-March-4.md
Original file line number Diff line number Diff line change
@@ -12,11 +12,7 @@ engine in GoLang.
Facebook Event link:
[https://www.facebook.com/events/1664420683812357/](https://www.facebook.com/events/1664420683812357/)

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="March 4th" %}}

# File Store Engine in Go --- how to reduce GC overhead

6 changes: 1 addition & 5 deletions content/post/2016-03-11-friday-hacks-109-Mar-11.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2016/03/11/friday-hacks-109-Mar-11/

For our fifth Friday Hacks of the semester, we're having Jia Hao, an undergrad from SUTD to talk about his popular [nativefier](http://github.com/jiahaog/nativefier) project.

{% capture venue %}
{{ 'VCRm, School of Computing' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="VCRm, School of Computing" date="March 11" %}}

Facebook Event link: [https://www.facebook.com/events/1665215933745308/](https://www.facebook.com/events/1665215933745308/)

6 changes: 1 addition & 5 deletions content/post/2016-03-18-friday-hacks-110-Mar-18.md
Original file line number Diff line number Diff line change
@@ -10,11 +10,7 @@ For our sixth Friday Hacks of the semester, we’re having Jordan Dea-Mattson sp

Facebook event: [https://www.facebook.com/events/201178496916684/](https://www.facebook.com/events/201178496916684/)

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="March 18" %}}

### Robust, scalable, and secure mobile apps in hostile environments.

5 changes: 1 addition & 4 deletions content/post/2016-04-01-friday-hacks-111-Apr-1.md
Original file line number Diff line number Diff line change
@@ -9,10 +9,7 @@ It's going to be an epic security themed Friday this week. There will be two tal

Facebook event: [https://www.facebook.com/events/1546142585684888/](https://www.facebook.com/events/1546142585684888/)

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="April 1" %}}

### Talk 1: The ABCs of XSS.

6 changes: 1 addition & 5 deletions content/post/2016-04-08-friday-hacks-112-Apr-8.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ For our second last Friday Hacks of the semester, we're inviting Omer and Jason

Facebook event: [https://www.facebook.com/events/213455062355930/](https://www.facebook.com/events/213455062355930/)

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="April 8" %}}

### Implementing a toy compiler with LLVM

6 changes: 1 addition & 5 deletions content/post/2016-04-15-friday-hacks-113-Apr-15.md
Original file line number Diff line number Diff line change
@@ -10,11 +10,7 @@ For our final Friday Hacks this semester, we’re inviting Melvin from [Cosmiqo]

Facebook Event [here](https://www.facebook.com/events/1219608128069067/).

{% capture venue %}
{{ 'Seminar Room 3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="Seminar Room 3, Town Plaza, University Town" date="April 15" %}}

### Talk 1: Building a Turing Machine emulator to explore Turing's great ideas.

6 changes: 1 addition & 5 deletions content/post/2016-08-19-friday-hacks-114-Aug-19.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2016/08/19/friday-hacks-114-Aug-19/

<em>In the jargon of the computer programmer, a hacker is someone who strives to solve problems in elegant and ingenious ways.</em>

{% capture venue %}
{{ 'School of Computing, Seminar Room 1' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="School of Computing, Seminar Room 1" date="August 19" %}}

### Welcome Tea

6 changes: 1 addition & 5 deletions content/post/2016-08-26-friday-hacks-115-Aug-26.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ This week, we have Hongyi from IDA and Haoyi from Dropbox, to speak about some t

Facebook Event [here](https://www.facebook.com/events/1063825533713913/).

{% capture venue %}
{{ 'School of Computing, Seminar Room 1' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="School of Computing, Seminar Room 1" date="August 26" %}}

### Diving Into Other People's Code

6 changes: 1 addition & 5 deletions content/post/2016-09-02-friday-hacks-116-Sep-2.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ This week, our very own coreteam members will be sharing their internship experi

Facebook Event [here](https://www.facebook.com/events/635393133292290/).

{% capture venue %}
{{ 'The Hangar by NUS Enterprise' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="The Hangar by NUS Enterprise" date="August 19" %}}

### Project Intern

6 changes: 1 addition & 5 deletions content/post/2016-09-09-friday-hacks-117-Sep-9.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ This week, we have Melvin from Cosmiqo talking about Programs that play better t

Facebook Event [here](https://www.facebook.com/events/146066629176746/).

{% capture venue %}
{{ 'SR3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza, University Town" date="September 9" %}}

### Programs that Play better than Us

6 changes: 1 addition & 5 deletions content/post/2016-09-16-friday-hacks-118-Sep-16.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ This week we have Yos from PayPal and Yong Wen from IDA talking about some of th

Facebook Event [here](https://www.facebook.com/events/332435350432925/).

{% capture venue %}
{{ 'The Hangar by NUS Enterprise' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="The Hangar by NUS Enterprise" date="September 16" %}}

### Entity Component Systems in Elixir

6 changes: 1 addition & 5 deletions content/post/2016-09-30-friday-hacks-119-Sep-30.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ This week, we have Benjamin from DSO and James from nuTonomy, both talking about

Facebook event [here](https://www.facebook.com/events/800240806745171/).

{% capture venue %}
{{ 'SR3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza, University Town" date="September 30" %}}

### Autonomous Vehicles: Advances and Algorithms

6 changes: 1 addition & 5 deletions content/post/2016-10-07-friday-hacks-120-Oct-7.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ This week have Sean from Twitter talking about building scalable advertising pla

Facebook event [here](https://www.facebook.com/events/1220661767976142/)

{% capture venue %}
{{ 'SR3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza, University Town" date="October 7" %}}

### Building scalable advertising platforms

6 changes: 1 addition & 5 deletions content/post/2016-10-14-friday-hacks-121-Oct-14.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ This week have Chuk from from NUS ISS and Yos from Paypal talking about JavaScri

Facebook event [here](https://www.facebook.com/events/348978242107994/)

{% capture venue %}
{{ 'The Hangar by NUS Enterprise' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="The Hangar by NUS Enterprise" date="October 14" %}}

### JS Promises

6 changes: 1 addition & 5 deletions content/post/2016-10-21-friday-hacks-122-Oct-21.md
Original file line number Diff line number Diff line change
@@ -11,11 +11,7 @@ Facebook event [here](https://www.facebook.com/events/1101191043328375/)

Been working on something cool and want to speak about it at Friday Hacks? Drop us an email at [coreteam@nushackers.org](mailto:coreteam@nushackers.org).

{% capture venue %}
{{ 'SR3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza, University Town" date="October 21" %}}

### NUSMods v3.0 and Modify.sg - Building the next-gen timetable

6 changes: 1 addition & 5 deletions content/post/2016-10-28-friday-hacks-123-Oct-28.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ This week we have Jordan and Shekhar from TradeGecko talking about the benefits

Facebook event [here](https://web.facebook.com/events/1687498014897347/)

{% capture venue %}
{{ 'SR3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza, University Town" date="October 28" %}}

### Why Go For Go!

6 changes: 1 addition & 5 deletions content/post/2016-11-04-friday-hacks-124-Nov-4.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ It’s the last Friday Hacks of the semester, and we’ll be doing something dif

Facebook event [here](https://www.facebook.com/events/1677032215959888/)

{% capture venue %}
{{ 'SR3, Town Plaza, University Town' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza, University Town" date="November 4" %}}

### Code Golf

6 changes: 1 addition & 5 deletions content/post/2017-01-20-friday-hacks-125-Jan-20.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ Friday Hacks is back for 2017! To kick off an exciting series this semester, we

Facebook event [here](https://www.facebook.com/events/1257124970992584/)

{% capture venue %}
{{ 'The Hangar by NUS Enterprise' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="The Hangar by NUS Enterprise" date="January 20" %}}

### The Art of Lockpicking

6 changes: 1 addition & 5 deletions content/post/2017-02-03-friday-hacks-126-Feb-3.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,7 @@ Hey folks, welcome back from the CNY break! Come join us this Friday to learn ab

Facebook event [here](https://www.facebook.com/events/1353893331348589/)

{% capture venue %}
{{ 'SR3, Town Plaza, University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR3, Town Plaza, University Town, NUS" date="February 3" %}}

### Realtime Collaboration: A Brief History

5 changes: 1 addition & 4 deletions content/post/2017-02-10-friday-hacks-127-Feb-10.md
Original file line number Diff line number Diff line change
@@ -7,10 +7,7 @@ url: /2017/02/10/friday-hacks-127-Feb-10/

Come join us this Friday for our weekly Friday Hacks! We will have Ding Feng sharing about hardware hacking. Read on to know more.

{% capture venue %}
{{ 'SR3, Town Plaza, University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, University Town, NUS" date="February 10" %}}

### Hardware Hacks: The Whys and Hows

5 changes: 1 addition & 4 deletions content/post/2017-02-17-friday-hacks-128-Feb-17.md
Original file line number Diff line number Diff line change
@@ -13,10 +13,7 @@ Free pizza is served before the talks!

Facebook event [here](https://www.facebook.com/events/603214613202877/)

{% capture venue %}
{{ 'SR3, Town Plaza, University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="SR3, Town Plaza, University Town, NUS" date="February 17" %}}

### My Love-Hate Relationship with Honeypot

5 changes: 1 addition & 4 deletions content/post/2017-03-03-friday-hacks-129-Mar-3.md
Original file line number Diff line number Diff line change
@@ -15,10 +15,7 @@ Free pizza is served before the talks!

Facebook event [here](https://www.facebook.com/events/139093879943292/)

{% capture venue %}
{{ 'The Hangar by NUS Enterprise' }}
{% endcapture %}
{% include friday_hack_header.html %}
{{% friday_hack_header venue="The Hangar by NUS Enterprise" date="March 3" %}}

### An Introduction to DIY Laser Cutters

6 changes: 1 addition & 5 deletions content/post/2017-03-10-friday-hacks-130-Mar-10.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2017/03/10/friday-hacks-130-Mar-10/

Hello folks, this week we're very excited to have Virgil Griffith over to speak about Bitcoin, Ethereum, the dark web as well as the exciting prospects of legaltech.

{% capture venue %}
{{ 'The Hangar by NUS Enterprise' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="The Hangar by NUS Enterprise" date="March 10" %}}

### Bitcoin, Darkweb, Ethereum and LegalTech

6 changes: 1 addition & 5 deletions content/post/2017-03-17-friday-hacks-131-Mar-17.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2017/03/17/friday-hacks-131-Mar-17/

Hi folks! This week we are privileged to have one of the leading experts in high performance computing (he has his own law!), give a talk on the intricacies of math in computing. For more information, refer to the talk description.

{% capture venue %}
{{ 'SR5, Town Plaza, University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR5, Town Plaza, University Town, NUS" date="March 17" %}}

### Weapons of Math Destruction

6 changes: 1 addition & 5 deletions content/post/2017-03-24-friday-hacks-132-Mar-24.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2017/03/24/friday-hacks-132-Mar-24/

Hello folks! Welcome back to Friday Hacks #132. This week we'll be having a talk by Abhilash, the creator of Bus Uncle, about how he built Singapore's most viral chatbot. After which, there will be a panel discussion headed by NUS Hackers Coreteam about how to maximize your summer.

{% capture venue %}
{{ 'SR5, Town Plaza, University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR5, Town Plaza, University Town, NUS" date="March 24" %}}

### How to Build a Bot People Will Love

2 changes: 1 addition & 1 deletion content/post/2017-03-31-friday-hacks-133-Mar-31.md
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ Programme:<br />
Facebook event [here](https://www.facebook.com/events/1802311516756267/)

<blockquote>
<strong>Date/Time</strong>: Friday, {{ page.title | split:", " | last }} at 7:00pm <br />
<strong>Date/Time</strong>: Friday, March 31 at 7:00pm <br />
<strong>Venue</strong>: i-Cube Building Auditorium, NUS <br />
<strong>NUS Enterprise Open Day from 5:00pm to 7:00pm.</strong> <br />
</blockquote>
6 changes: 1 addition & 5 deletions content/post/2017-04-07-friday-hacks-134-Apr-7.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ url: /2017/04/07/friday-hacks-134-Apr-7/

Welcome back to our last episode of Friday Hacks for this semester! This week we'll be having Peter over to talk about Nix and NixOS. Nix and its related technologies bring a radically different approach to server/container management and allows you to provision OS and software in repeatable and consistent ways. Also, if you're curious about row hammering as a means of exploitation, mentioned last Friday Hacks by Halvar, Vishnu will be sharing about it in detail in the second talk.

{% capture venue %}
{{ 'SR5, Town Plaza, University Town, NUS' }}
{% endcapture %}
{% include friday_hack_header.html %}

{{% friday_hack_header venue="SR5, Town Plaza, University Town, NUS" date="April 7" %}}

### (Programming your OS && ignoring state) == bliss

3 changes: 3 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -5,6 +5,9 @@
<h1>{{ .Title }}</h1>
<h2 class="posted">Posted on <time>{{ .Date.Format "Jan 2" }}</time> by {{ .Params.author }}</h2>
{{ .Content }}
{{ if eq (substr .Title 0 14) "Friday Hacks #" }}
{{ partial "friday_hack_footer.html" . }}
{{ end}}
</article>
</section>
<div class="col-12 col-md-10 offset-md-1 browse">
13 changes: 13 additions & 0 deletions layouts/partials/friday_hack_footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<h3>
Our Sponsors
</h3>

<p>
Friday Hacks is sponsored by NUS Enterprise.
</p>

<div>
<a href="/res/2013/10/ETP-logo-full-color-vertical-to-be-used.jpg"><img class="inline-img" alt="" src="/res/2013/10/ETP-logo-full-color-vertical-to-be-used-300x247.jpg" width="180" height="148" /></a>
</div>

If you are looking to turn your ideas into a startup and would love some business support, feel free to get in touch with Agustiadi from NUS Enterprise: agustiadi@nus.edu.sg
5 changes: 5 additions & 0 deletions layouts/shortcodes/friday_hack_header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<blockquote>
<strong>Date/Time</strong>: Friday, {{ .Get "date" }} at 6:30pm <br />
<strong>Venue</strong>: {{ .Get "venue" }} <br />
<strong>Free pizza is served before the talks.</strong> <br />
</blockquote>
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyyaml
87 changes: 87 additions & 0 deletions scripts/gen_fh.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Generate this week's friday hack
# Please first update data/friday_hacks.yml before running this
import yaml
from datetime import datetime, timedelta
from os import listdir
from os.path import isfile, join
import re

with open('../data/friday_hacks.yml', 'r') as fin:
doc = yaml.load(fin)
start_date = datetime.strptime(doc['start_date'],
'%Y-%m-%d %H:%M:%S +0800')
# Time delta fixes weird bug
now = datetime.today() - timedelta(hours=3)
hacks = doc['hacks']
cur = start_date
next_hack = None
next_date = None
for hack in hacks:
if cur > now:
next_hack = hack
next_date = cur
break
cur += timedelta(days=7)
if not next_hack:
print "Dude semester's over"
quit()

if not next_hack.get('topics'):
print "Dude no hackz"
quit()

name = raw_input("Your name? ")

# so future-proof it's sick
fhre = re.compile(
r'^20[0-9][0-9]-[01][0-9]-[0-3][0-9]-friday-hacks-([1-9][0-9]*)-[a-zA-z]*-[0-9]+\.md$')

num = 0
# so.. tempted... to... use lazy evaluation
for f in listdir('../content/post/'):
result = fhre.search(f)
if result:
cur = int(result.group(1))
if cur > num:
num = cur

num += 1
# now witness templating in raw string
content = '''\
---
title: "Friday Hacks #{num}, {month} {day}"
date: {now}
author: {author}
---
--- say something as introduction ---
{{{{% friday_hack_header venue="{venue}" date="{month} {day}" %}}}}
'''.format(num=num,
now=datetime.today(),
month=next_date.strftime("%B"),
day=next_date.day,
author=name,
venue=next_hack['venue']) + '\n'.join(['''
### {talk_name}
#### Talk Description:
--- describe ----
#### Speaker Profile
--- describe ----
'''.format(talk_name=topic['title']) for topic in next_hack['topics']])

filename = '../content/post/{now}-friday-hacks-{num}-{month}-{day}.md'.format(
now=next_date.strftime("%Y-%m-%d"),
num=num,
month=next_date.strftime('%b'),
day=next_date.day,
)

with open(filename, 'a') as fout:
fout.write(content)
3 changes: 3 additions & 0 deletions scripts/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Scripts to automate your blog-posting misery.

Please use Python unless you have compelling reason to do otherwise.

0 comments on commit 82ef591

Please sign in to comment.