A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| const maxConcurrentRequests = 100 | |
| type Response struct { |
| package parse | |
| import ( | |
| "fmt" | |
| "github.com/robertkrimen/otto/ast" | |
| "github.com/robertkrimen/otto/parser" | |
| "io/ioutil" | |
| "reflect" | |
| ) |
| document.write('foobar'); |
| const Question = React.createClass({ | |
| handleGetStarted: function(event) { | |
| this.nextQuestion(event); | |
| }, | |
| qdata: [ | |
| { | |
| id: 0, | |
| type: "m-choice", | |
| question: "Are you ready to get started?", | |
| options: [ |
| # PROMPT='%{$fg_bold[red]%}%M at %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' | |
| PROMPT='%{$fg_bold[yellow]%}%n %{$reset_color%}at %{$fg_bold[green]%}%m %{$fg[cyan]%}${PWD/#$HOME/~} %{$fg_bold[blue]%}$%{$fg_bold[blue]%} % %{$reset_color%} | |
| $ ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="" |
| var fullscreen, right, left, topLeft, bottomLeft, topRight, bottomRight; | |
| fullscreen = slate.operation('move', { | |
| x: 'screenOriginX', | |
| y: 'screenOriginY', | |
| width: 'screenSizeX', | |
| height: 'screenSizeY' | |
| }); | |
| right = slate.operation('move', { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Sample page</title> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" type="text/css" href="main.css"> | |
| </head> | |
| <body> | |
| <ul id="list"> | |
| <li>Maine</li> |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| function log() { | |
| var output = Array.prototype.slice.call(arguments, 0).join(' '); | |
| var div = document.createElement('div'); | |
| div.innerText = output; | |
| document.body.appendChild(div); | |
| } |