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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Hyperapp Views</title> | |
| </head> | |
| <body> | |
| <div id="app-entry"></div> | |
| <script src="https://unpkg.com/[email protected]/dist/hyperapp.js"></script> |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Hyperapp Views</title> | |
| </head> | |
| <body> | |
| <div id="app-entry"></div> | |
| <script src="https://unpkg.com/[email protected]/dist/hyperapp.js"></script> |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <title>I r child</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 0; |
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
| export interface AnotherfileStatic { | |
| validfunction(greeting: string); | |
| } | |
| declare const Anotherfile: AnotherfileStatic; | |
| export default Anotherfile; |
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
| const MongoClient = require('mongodb').MongoClient | |
| const Controller = require('./controller') | |
| const Service = require('./service') | |
| const Repository = require('./repository') | |
| MongoClient.connect('some mongo url') | |
| .then((db) => { | |
| const repository = Repository(db) | |
| const service = Service(repository) |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Battlefy</title> | |
| </head> | |
| <body> | |
| <div id="react-entry"> | |
| </div> | |
| <script type="text/javascript" src="bundle.js" charset="utf-8"></script> |
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
| const getUserByEmail = (connection, userEmail) => { | |
| const userPromise = connection | |
| .queryAsync(‘SELECT `id` FROM `user` WHERE `email` = ?’, [ | |
| userEmail | |
| ]) | |
| .then(R.head); | |
| const permissionsPromise = userPromise | |
| .then(R.unless(R.isNil, (user) => connection | |
| .queryAsync(‘SELECT `id`, `name` FROM `permission` WHERE `user_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
| RIGINAL_PATH='/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' | |
| source `brew --prefix git`/etc/bash_completion.d/git-prompt.sh | |
| source `brew --prefix git`/etc/bash_completion.d/git-completion.bash | |
| export JAVA_HOME=`/usr/libexec/java_home` | |
| export MAVEN_HOME='/usr/local/opt/maven/libexec/' | |
| export PATH="$ORIGINAL_PATH:/Users/rchen/dev/tools/bin" |
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 | |
| DATECMD='gdate +%s%N' | |
| process_stdout() { | |
| while read line; do | |
| echo -e `$DATECMD`"\t$line" | |
| 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
| #!/bin/bash | |
| grep --color "$1\|\$" - |