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(val name: String, val female: Boolean) | |
| val people = List( | |
| new Person("Cliffy", false), | |
| new Person("Ewing", true), | |
| new Person("Tolkein", false), | |
| new Person("Donna", true)) | |
| // Traverse the list and print the names | |
| for (person <- people) |
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 killvpn() { | |
| ps -ef | grep racoon | grep -v grep | awk '{print $2}' | xargs kill -9 | |
| } |
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
| import bottle | |
| from bottle import run, post, get, request, HTTPError | |
| import json | |
| import re | |
| import hashlib | |
| import os | |
| userLogins = {} | |
| @post('/post/') |