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
"use strict"; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
const fs = require("fs"); | |
const reg = /((^it)|(^test)|(^describe))((\.skip)|(\.only))?\(['"](.*)['"]/ | |
const skipPrefix = '⚪️ '; | |
const isolatedPrefix = '🔵 '; | |
const descriptionIcon = 'level3'; | |
const testIcon = 'none'; |
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
#!/bin/sh | |
# Maintaining | |
# git remote add upstream https://gist.github.com/3195465.git | |
# git fetch upstream | |
# git rebase upstream/master | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' |
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
cd /etc/apache2/sites-available/ | |
sudo cp <SOME SIMILAR CONF> <NEW CONF> | |
sudo nano <NEW CONF> | |
sudo a2ensite <NEW CONF> | |
sudo service apache2 restart |
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
<link rel="stylesheet" href="{{ STATIC_URL }}css.css"/> |
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
Blog | |
├── blog_app (mapp) | |
│ ├── __init__.py | |
│ ├── admin.py | |
│ ├── models.py | |
│ ├── static (mapp) | |
│ ├── templates (mapp) | |
│ │ ├── blog_post.html | |
│ │ └── index.html | |
│ ├── tests.py |
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
STATICFILES_FINDERS = ( | |
'django.contrib.staticfiles.finders.FileSystemFinder', | |
'django.contrib.staticfiles.finders.AppDirectoriesFinder', | |
) |
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
*{ | |
margin: 0px; | |
padding: 0px; | |
} | |
html{ | |
width: 100%; | |
height: 100%; | |
} | |
body{ | |
width: 100%; |
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
{% extends "base.html"%} | |
{% block title %} {{ oneBlogPost.title|upper }} {% endblock %} | |
{% block content %} | |
<h2 class="blogPostHeading">{{ oneBlogPost.title|upper }}</h2> | |
<p>{{ oneBlogPost.content }}</p> | |
<i>Av: {{ oneBlogPost.author.first_name }} {{ oneBlogPost.author.last_name }} den {{ oneBlogPost.datetime }}</i></br></br> | |
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
{% block content %} | |
{% for post in allBlogPosts reversed %} | |
<h2><a href="/blog-post{{ post.id }}">{{ post.title|upper }}</a></h2> | |
<p>{{ post.content }}</p> | |
<i>Av: {{ post.author.first_name }} {{ post.author.last_name }} den {{ post.datetime }}</i></br></br> | |
{% endfor %} | |
{% endblock %} |
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
{% extends "base.html" %} |
NewerOlder