This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create the group | |
sudo cgdelete memory:/emacs # Recreating it when making changes seems to help them take effect | |
sudo cgcreate -g memory:/emacs -t chris:chris | |
sudo cgset -r memory.swappiness=0 emacs | |
sudo cgset -r memory.limit_in_bytes=1GB emacs | |
# Run the process with memory limits | |
cgexec -g memory:emacs emacs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE NamedFieldPuns, RecordWildCards #-} | |
-------------------------------------------------------------------------------- | |
-- OpenGL quadrocopter viewer | |
-------------------------------------------------------------------------------- | |
module Main where | |
import Data.IORef | |
import Control.Monad | |
import Control.Applicative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Choose a ticket class: <select id="tickets"></select> | |
<p id="ticketOutput"></p> | |
<script id="ticketTemplate" type="text/x-jquery-tmpl"> | |
{{if chosenTicket}} | |
You have chosen <b>${ chosenTicket().name }</b> | |
($${ chosenTicket().price }) | |
<button data-bind="click: resetTicket">Clear</button> | |
{{/if}} |