2015-10-21
- jennifer
- martym
| # Codespaces zsh prompt theme | |
| __zsh_prompt() { | |
| local prompt_username | |
| if [ ! -z "${GITHUB_USER}" ]; then | |
| prompt_username="@${GITHUB_USER}" | |
| else | |
| prompt_username="%n" | |
| fi | |
| PROMPT="%{$fg[green]%}${prompt_username} %(?:%{$reset_color%}➜ :%{$fg_bold[red]%}➜ )" # User/exit code arrow | |
| PROMPT+='%{$fg_bold[blue]%}%(5~|%-1~/…/%3~|%4~)%{$reset_color%} ' # cwd |
| package main | |
| import ( | |
| "context" | |
| "crypto/rsa" | |
| "crypto/x509" | |
| "encoding/json" | |
| "encoding/pem" | |
| "fmt" | |
| "log" |
| # Add sudo to node runner | |
| sed -i "/node/s/^/sudo /" ~/.vscode-server/bin/*/server.sh | |
| # Restart remote vscode | |
| pkill -f vscode |
| package main | |
| import ( | |
| "log" | |
| "net" | |
| "os" | |
| "os/signal" | |
| "sync" | |
| "syscall" | |
| "time" |
| function compoundUnicode(str) { | |
| return `${str}` | |
| .replace(/\u0065\u0309/g, '\u1EBB') // ẻ | |
| .replace(/\u0065\u0301/g, '\u00E9') // é | |
| .replace(/\u0065\u0300/g, '\u00E8') // è | |
| .replace(/\u0065\u0323/g, '\u1EB9') // ẹ | |
| .replace(/\u0065\u0303/g, '\u1EBD') // ẽ | |
| .replace(/\u00EA\u0309/g, '\u1EC3') // ể | |
| .replace(/\u00EA\u0301/g, '\u1EBF') // ế | |
| .replace(/\u00EA\u0300/g, '\u1EC1') // ề |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/gob" | |
| "net/http" | |
| "github.com/gin-gonic/gin" | |
| ) |
| import React from 'react'; | |
| import Link from 'next/link'; | |
| import { translate } from 'react-i18next'; | |
| import i18n from '../i18n'; | |
| import Frontend from '../components/frontend/Frontend/Frontend'; | |
| class Home extends React.Component { | |
| render() { | |
| return ( |
| import React, {Component} from 'react'; | |
| import {View, Text, Navigator, StatusBar} from 'react-native'; | |
| import SideMenu from './Router.js' | |
| import Authentication from './Authentication/Authentication.js'; | |
| import Main from './Main/Main.js'; | |
| import ChangeInfo from './ChangeInfo/ChangeInfo.js'; | |
| import OrderHistory from './OrderHistory/OrderHistory.js'; |
| const request = require('request-promise'); | |
| const errors = require('feathers-errors'); | |
| const options = { | |
| idField: 'sub', | |
| issuer: 'iss' | |
| }; | |
| module.exports = function() { |