Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="page hfeed">
  <header class="branding">
    <hgroup role="banner">
      <h1 class="banner-text"><span><a href="/" title="NUS Hackers" rel="home"><img class="banner-logo" src="http://nushackers.org/images/nushackersl.gif"></a></span></h1>
    </hgroup>
    <!--Navigation-->
    <nav class="nav" role="navigation">
      <ul class="nav-menu">

        <li class="nav-menu-item"><a class="nav-menu-link" href="/about">About</a></li>

        <li class="nav-menu-item"><a class="nav-menu-link" href="/discussion">Discussion</a></li>

        <li class="nav-menu-item"><a class="nav-menu-link" href="/events">Events</a></li>

        <li class="nav-menu-item"><a class="nav-menu-link" href="/code">Code</a></li>

        <li class="nav-menu-item"><a class="nav-menu-link" href="/contact">Contact</a></li>

      </ul>
    </nav>
  </header>
  <div class="main">
    <section class="primary">
      <div id="posts">
        <header class="front">
          <h1>Articles</h1>
          <ul class="front-list">
            <li>
              <a href='http://school.nushackers.org'>hackerschool</a>: workshops for hackers &rarr;
            </li>
            <li>
              <a href='http://code.nushackers.org'>Code@NUS</a>: Code repository for NUS students &rarr;
            </li>
            <li>
              <a href='http://hacknroll.nushackers.org'>Hack&Roll</a>: 24-hour hackathon for students &rarr;
            </li>
          </ul>
        </header>

        <article class="entry">
          <header class="entry-header">
            <div class="entry-meta">
              <time>07 Apr 2017</time>
            </div>
            <!-- .entry-meta -->
            <h2 class="entry-title"><a href="/2017/04/friday-hacks-134-Apr-7" title="Permalink Friday Hacks #134, April 7" rel="bookmark">Friday Hacks #134, April 7</a></h2>
          </header>
          <p class="entry-content">
            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 ra...
            <a class="readmore" href="/2017/04/friday-hacks-134-Apr-7">Read More</a>
          </p>
        </article>

        <article class="entry">
          <header class="entry-header">
            <div class="entry-meta">
              <time>30 Mar 2017</time>
            </div>
            <!-- .entry-meta -->
            <h2 class="entry-title"><a href="/2017/03/digest-a-parallelized-ray-tracer-in-the-browser" title="Permalink Digest: A parallelized ray tracer in the browser" rel="bookmark">Digest: A parallelized ray tracer in the browser</a></h2>
          </header>
          <p class="entry-content">
            This post was originally published at staceytay.com. This semester, I got a chance to write a ray tracer for my parallel programming class. I took this class because I thought ...
            <a class="readmore" href="/2017/03/digest-a-parallelized-ray-tracer-in-the-browser">Read More</a>
          </p>
        </article>

        <article class="entry">
          <header class="entry-header">
            <div class="entry-meta">
              <time>27 Mar 2017</time>
            </div>
            <!-- .entry-meta -->
            <h2 class="entry-title"><a href="/2017/03/friday-hacks-133-Mar-31" title="Permalink Friday Hacks #133, March 31" rel="bookmark">Friday Hacks #133, March 31</a></h2>
          </header>
          <p class="entry-content">
            Hey folks, join this special edition on cyber security to hear from Jeff Moss and Halvar Flake! Event Description: NUS Greyhats and NUS Hackers are co-organizing this coming sp...
            <a class="readmore" href="/2017/03/friday-hacks-133-Mar-31">Read More</a>
          </p>
        </article>

        <article class="entry">
          <header class="entry-header">
            <div class="entry-meta">
              <time>21 Mar 2017</time>
            </div>
            <!-- .entry-meta -->
            <h2 class="entry-title"><a href="/2017/03/friday-hacks-132-Mar-24" title="Permalink Friday Hacks #132, March 24" rel="bookmark">Friday Hacks #132, March 24</a></h2>
          </header>
          <p class="entry-content">
            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 ...
            <a class="readmore" href="/2017/03/friday-hacks-132-Mar-24">Read More</a>
          </p>
        </article>

        <article class="entry">
          <header class="entry-header">
            <div class="entry-meta">
              <time>13 Mar 2017</time>
            </div>
            <!-- .entry-meta -->
            <h2 class="entry-title"><a href="/2017/03/friday-hacks-131-Mar-17" title="Permalink Friday Hacks #131, March 17" rel="bookmark">Friday Hacks #131, March 17</a></h2>
          </header>
          <p class="entry-content">
            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...
            <a class="readmore" href="/2017/03/friday-hacks-131-Mar-17">Read More</a>
          </p>
        </article>

        <a href="/articles">More Articles &rarr;</a>
      </div>
      <!--posts-->

      <div class="fh">
        <header class="front">
          <h1>Friday Hacks</h1>
          <ul class="front-list">
            <li><a href="/sponsor">Supported</a> by NEC and IDA. </li>
          </ul>
        </header>
        <ul class="fh-list">

          <li>
            <time>Jan 20</time>

            <div><small><i>The Hangar by NUS Enterprise</i></small></div>


            <ul>

              <li>

                <strong>Fazli Sapuan</strong>

                <span>(Garena)</span>


                <div>The Art of Lockpicking</div>
              </li>

              <li>

                <strong>Wang Chen</strong>

                <span>(SAP)</span>


                <div>Smart Enterprise Software Empowered by Machine Learning</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Jan 27</time>


            <div>
              <em>CNY Eve, no Friday Hacks</em>
            </div>

          </li>

          <li>
            <time>Feb 3</time>

            <div><small><i>SR3, Town Plaza, University Town, NUS</i></small></div>


            <ul>

              <li>

                <strong>Jethro Kuan</strong>

                <span>(NUS Hackers)</span>


                <div>Realtime Collaboration: A Brief History</div>
              </li>

              <li>

                <strong>Wang Leng</strong>

                <span>(NUS School of Computing)</span>


                <div>Cross Site Scripting</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Feb 10</time>

            <div><small><i>SR3, Town Plaza, University Town, NUS</i></small></div>


            <ul>

              <li>

                <strong>Ding Feng</strong>

                <span>(NUS CS)</span>


                <div>Hardware Hacks: The Whys and Hows</div>
              </li>

              <li>

                <strong>Raghav Sood</strong>

                <span>(IBM Blockchain Innovation Center)</span>


                <div>Wi-Fi Hacks: Hacking the Air Around Us</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Feb 17</time>

            <div><small><i>SR3, Town Plaza, University Town, NUS</i></small></div>


            <ul>

              <li>

                <strong>Emil Tan</strong>

                <span>(Edgis)</span>


                <div>My Love-Hate Relationship with Honeypot</div>
              </li>

              <li>

                <strong>Sunny Neo</strong>

                <span>(BT Security)</span>


                <div>Web Security for Developers</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Feb 24</time>


            <div>
              <em>Recess Week, no Friday Hacks</em>
            </div>

          </li>

          <li>
            <time>Mar 3</time>

            <div><small><i>The Hangar by NUS Enterprise</i></small></div>


            <ul>

              <li>

                <strong>Kee Wee Teng</strong>

                <span>(FSTD, MINDEF)</span>


                <div>An Introduction to DIY Laser Cutters</div>
              </li>

              <li>

                <strong>Francis Regan, Xinxin Du and Shabbir</strong>

                <span>(Ionic3DP)</span>


                <div>The Kappa 3D Printer</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Mar 10</time>

            <div><small><i>The Hangar by NUS Enterprise</i></small></div>


            <ul>

              <li>

                <strong>Virgil Griffith</strong>

                <span>(Legalese)</span>


                <div>Bitcoin, Darkweb, Ethereum and LegalTech</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Mar 17</time>

            <div><small><i>SR5, Town Plaza, University Town, NUS</i></small></div>


            <ul>

              <li>

                <strong>John L. Gustafson</strong>

                <span>(NUS)</span>


                <div>Weapons of Math Destruction</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Mar 24</time>

            <div><small><i>SR5, Town Plaza, University Town, NUS</i></small></div>


            <ul>

              <li>

                <strong>Abhilash Murthy</strong>

                <span>(Bus Uncle)</span>


                <div>How to Build a Bot People Will Love</div>
              </li>

              <li>

                <strong>Coreteam</strong>

                <span>(NUS Hackers)</span>


                <div>Panel Discussion - Summer Plans</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Mar 31</time>

            <div><small><i>i-Cube Building Auditorium, NUS</i></small></div>


            <ul>

              <li>

                <strong>Jeff Moss</strong>

                <span>(DEFCON & BlackHat)</span>


                <div>A Sharing on Cyber Security</div>
              </li>

              <li>

                <strong>Halvar Flake</strong>

                <span>(Google)</span>


                <div>Another Sharing on Cyber Security</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Apr 7</time>

            <div><small><i>SR5, Town Plaza, University Town, NUS</i></small></div>


            <ul>

              <li>

                <strong>Peter Hoeg</strong>

                <span>(Speartail)</span>


                <div>(Programming your OS && ignoring state) == bliss</div>
              </li>

              <li>

                <strong>Vishnu Prem</strong>

                <span>(Coreteam)</span>


                <div>Row Hammer: Flipping Bits in Memory Without Accessing Them</div>
              </li>

            </ul>

          </li>

          <li>
            <time>Apr 14</time>


            <div>
              <em>Good Friday, no Friday Hacks</em>
            </div>

          </li>

        </ul>
      </div>
      <div id="leftbar">
        <strong>We're building a community of passionate hackers in NUS.</strong> <a href="/about">Read more about us</a>, attend or speak at <a href="/fridayhacks">one of our meetings</a>, or <a href="/code">use our code</a>.
      </div>

    </section>
  </div>
  <footer id="colophon" role="contentinfo">
    <div id="site-generator">
      &copy; NUS Hackers • Hosted on <a href="http://simplercloud.com">SimplerCloud</a> • Powered by <a href="http://jekyllrb.com" rel="generator">Jekyll</a><span class="sep"> • </span><a href="https://github.com/nushackers/nushackers-site">Source</a>      • <a href="http://school.nushackers.org">hackerschool</a>
    </div>
  </footer>
  <!-- #colophon -->
</div>
<!-- #page -->
              
            
!

CSS

              
                $nushackers-dark-orange: #CC4100;
$nushackers-orange: #ee5f00;
$main-font: -apple-system,
BlinkMacSystemFont,
Segoe UI,
Roboto,
Oxygen,
Ubuntu,
Cantarell,
Fira Sans,
Droid Sans,
Helvetica Neue,
sans-serif;
$heading-font: Quattrocento,
Times,
serif;
$tablet-width: 768px;
$desktop-width: 1024px;
@mixin tablet {
  @media (min-width: #{$tablet-width}) and (max-width: #{$desktop-width - 1px}) {
    @content;
  }
}

@mixin desktop {
  @media (min-width: #{$desktop-width}) {
    @content;
  }
}

body {
  font-family: $main-font;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: $heading-font;
}

a {
  background: none repeat scroll 0 0 transparent;
  color: $nushackers-dark-orange;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.clear-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.4;
}

.test {
  border: 2px solid red;
}

.page {
  max-width: 80%;
  width: 60rem;
  margin: 0.75rem;
}

.branding {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  border-bottom: 1px dotted #333;
}

.banner {
  &-text {
    margin: 0;
  }
  &-logo {
    width: 13rem;
    @include tablet {
      width: 16rem;
    }
    @include desktop {
      width: 20rem;
    }
  }
}

.nav {
  &-menu {
    @extend .clear-list;
    display: flex;
  }
  &-menu-item {
    padding: 0.5rem;
    text-align: center;
  }
  &-menu-link {
    color: black;
    text-decoration: none;
  }
  &-menu-item:hover {
    background: $nushackers-orange;
  }
  &-menu-item:hover &-menu-link {
    color: white;
    text-decoration: none;
  }
}

.front {
  &-list {
    @extend .clear-list;
    margin: 1rem 0;
  }
  a {
    color: #666;
    text-decoration: underline;
  }
}

.entry {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #ccc;
  &-title {
    margin: 0.5rem 0;
    a {
      color: #333;
    }
  }
  &-content {
    margin: 0.5rem 0;
  }
}

.fh-list {
  @extend .clear-list;
  time {
    color: #999;
  }
  span {
    color: #999;
  }
  ul {
    @extend .clear-list;
    border-bottom: 1px dotted #333;
  }
  li {
    margin: 0.5rem 0;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console