Author: Chris Lattner
This file contains 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
\<CR>--- | |
\<CR>title: | |
\<CR>date: =strftime('%c') | |
\<CR>draft: true | |
\<CR>author: "Kwabena Aning" | |
\<CR>tags: [] | |
\<CR>--- |
I hereby claim:
- I am kaning on github.
- I am kaningels (https://keybase.io/kaningels) on keybase.
- I have a public key ASChxHKCypLNR4--OM4pyTkxSNr4PDauq4qz85W2f8qC-go
To claim this, I am signing this object:
I hereby claim:
- I am kaning on github.
- I am kaning (https://keybase.io/kaning) on keybase.
- I have a public key ASBE8EQlbYAra49ctCtVSe12ulEaIySbYbRpNrlo6TJm2wo
To claim this, I am signing this object:
This file contains 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
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d |
This file contains 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
val getUserById = | |
(apiOperation[User]("getUserById") | |
summary "Get a user by a given ID" | |
parameters pathParam[Int]("id").description("The id for the user to be retrieved")) | |
get("/:id", operation(getUserById)) { | |
val userID = params.getAs[Int]("id").getOrElse(halt(400)) | |
val userData = Users.findUserByID(userID) | |
userData match { |
This file contains 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 ClassifiedForm(ModelForm): | |
class Meta: | |
model = Classified | |
fields = ['title', 'description', 'contact'] | |
def __init__(self, *args, **kwargs): | |
super(ClassifiedForm, self).__init__(*args, **kwargs) | |
self.helper = FormHelper() | |
self.helper.form_class = 'form-horizontal' | |
self.helper.form_method = 'post' |
This file contains 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
RewriteEngine On | |
RewriteRule ^\.htaccess$ - [F] | |
RewriteCond %{REQUEST_URI} ="" | |
RewriteRule ^.*$ /public/index.php [NC,L] | |
RewriteCond %{REQUEST_URI} !^/public/.*$ | |
RewriteRule ^(.*)$ /public/$1 | |