This file contains hidden or 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
    
  
  
    
  | @(posts: List[Post], postForm: Form[Post])(implicit flash: Flash) | |
| @main(Messages("posts.list")) { | |
| <dl class="posts"> | |
| @for(post <- posts) { | |
| <dt> | |
| <a href="@controllers.routes.Posts.view(post.id)">@post.name</a> | |
| </dt> | |
| <dd>@post.description</dd> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | package models | |
| import play.api.Play.current | |
| import java.util.Date | |
| import com.novus.salat._ | |
| import com.novus.salat.annotations._ | |
| import com.novus.salat.dao._ | |
| import com.mongodb.casbah.Imports._ | |
| import se.radley.plugin.salat._ | |
| import mongoContext._ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | package models | |
| import com.novus.salat.dao._ | |
| import com.novus.salat.annotations._ | |
| import com.mongodb.casbah.Imports._ | |
| import com.novus.salat.{TypeHintFrequency, StringTypeHintStrategy, Context} | |
| import play.api.Play | |
| import play.api.Play.current | |
| package object mongoContext { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #!/usr/bin/env python | |
| import SimpleHTTPServer | |
| import SocketServer | |
| PORT = 8000 | |
| Handler = SimpleHTTPServer.SimpleHTTPRequestHandler | |
| httpd = SocketServer.TCPServer(("", PORT), Handler) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | -module(hello). | |
| -export([start/1]). | |
| start(Port) -> | |
| spawn(fun () -> {ok, Sock} = gen_tcp:listen(Port, [{active, false}]), | |
| loop(Sock) end). | |
| loop(Sock) -> | |
| {ok, Conn} = gen_tcp:accept(Sock), | |
| Handler = spawn(fun () -> handle(Conn) end), | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <?php | |
| public function indexAction() | |
| { | |
| $this->getResponse()->setBody('List of Resources'); | |
| $this->getResponse()->setHttpResponseCode(200); | |
| } | |
| public function getAction() | |
| { | |
| $this->getResponse()->setBody(sprintf('Resource #%s', $this->_getParam('id'))); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # ~/.osx — http://mths.be/osx | |
| ############################################################################### | |
| # General UI/UX # | |
| ############################################################################### | |
| # Set computer name (as done via System Preferences → Sharing) | |
| scutil --set ComputerName "MathBook Pro" | |
| scutil --set HostName "MathBook Pro" | |
| scutil --set LocalHostName "MathBook-Pro" | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Configs | |
| config defaultToCurrentScreen true | |
| config nudgePercentOf screenSize | |
| config resizePercentOf screenSize | |
| config secondsBetweenRepeat 0.1 | |
| config checkDefaultsOnLoad true | |
| config focusCheckWidthMax 3000 | |
| config windowHintsShowIcons true | |
| config windowHintsIgnoreHiddenWindows false | |
| config windowHintsSpread true | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // Implementing the publishing Pusher REST API | |
| // @see http://pusher.com/docs/rest_api | |
| // with Play (scala) Framework | |
| // @see http://scala.playframework.org/ | |
| class Pusher { | |
| val appId = Play.configuration.getProperty("pusher.appId") | |
| val key = Play.configuration.getProperty("pusher.key") | |
| val secret = Play.configuration.getProperty("pusher.secret") | |
  
    
      This file contains hidden or 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
    
  
  
    
  | class Pusher { | |
| val appId = Play.configuration.getString("pusher.appId") | |
| val key = Play.configuration.getString("pusher.key") | |
| val secret = Play.configuration.getString("pusher.secret") | |
| import java.security.MessageDigest | |
| import java.math.BigInteger | |
| import javax.crypto.Mac | |
| import javax.crypto.spec.SecretKeySpec | |