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
    
  
  
    
  | #!/bin/bash | |
| while true; do | |
| echo "(Re-)starting server on port $1" | |
| /server -port $1 | |
| done | 
  
    
      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
    
  
  
    
  | alex@Sapiens lyst (bac-1830-pg-mod-analytics-migration) $ cat ~/.zprezto/modules/prompt/functions/prompt_gentoo_setup | |
| # | |
| # A theme that resembled the gentoo default prompt. | |
| # | |
| # Authors: | |
| # Alex Muscar <muscar@gmail.com> | |
| # Sorin Ionescu <sorin.ionescu@gmail.com> | |
| # | |
| # Screenshots: | |
| # | 
  
    
      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 Node | |
| macro def accept(visitor) : LLVM::Value | |
| visitor.visit self | |
| end | |
| end | |
| ... | |
| def visit(node: ReturnStmtNode) | |
| val = node.value.accept self | 
  
    
      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
    
  
  
    
  | function git_add_modified | |
| for f in (git ls-files -m) | |
| if y_or_n "Add $f?" | |
| git add $f | |
| end | |
| end | |
| end | |
| function git_show_modified_filed | |
| for sha in (git log -n $argv[1] | grep commit | cut -d' ' -f2) | 
  
    
      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
    
  
  
    
  | func tryIncUnsafe(n: Int!) -> Int? { | |
| return n + 1 | |
| } | 
  
    
      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
    
  
  
    
  | func tryInc(n: Int?) -> Int? { | |
| if let x = n { | |
| return x + 1 | |
| } | |
| return nil | |
| } | 
  
    
      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 Person { | |
| let age: Int | |
| init(age: Int) { | |
| self.age = age | |
| } | |
| } | |
| let p1: Person? = Person(age: 27) | |
| let p2: Person? = nil | 
  
    
      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
    
  
  
    
  | func tryInc(n: Int?) -> Int? { | |
| if let x = n { | |
| return x + 1 | |
| } | |
| return nil | |
| } | |
| func tryIncUnsafe(n: Int!) -> Int? { | |
| return n + 1 | |
| } | 
  
    
      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
    
  
  
    
  | struct expr { }; | |
| struct num : expr | |
| { | |
| int value; | |
| num(int value) : value(value) { } | |
| }; | |
| struct plus : expr | 
  
    
      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
    
  
  
    
  | // | |
| // main.cpp | |
| // wirth | |
| // | |
| // Created by Alex Muscar on 6/20/13. | |
| // Copyright (c) 2013 Alex Muscar. All rights reserved. | |
| // | |
| #include <iostream> | |
| #include <vector> | 
NewerOlder