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
$size-sm: 544px; | |
$size-md: 768px; | |
$size-lg: 992px; | |
$size-xl: 1200px; | |
@mixin sm { | |
@media (min-width: $size-sm) { | |
@content; | |
} | |
} |
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
version: '2' | |
services: | |
web: | |
build: . | |
ports: | |
- "80:8080" | |
php: | |
image: php:7-fpm |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Marker Animations</title> | |
<style> | |
html, body { | |
height: 100%; | |
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
pip_update: | |
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U | |
rm -f requirements.txt | |
pip freeze > requirements.txt |
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
window.ws; | |
forceServer("176.9.91.40", "443"); |
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
css: | |
./node_modules/node-sass/bin/node-sass resources/assets/sass/style.scss resources/assets/css/style.css --recursive --compress | |
./node_modules/postcss-cli/bin/postcss --use autoprefixer resources/assets/css/style.css -o resources/assets/css/style.css | |
./node_modules/.bin/cssnano resources/assets/css/style.css static/style.min.css --safe | |
watchcss: css | |
./node_modules/node-sass/bin/node-sass resources/assets/sass/style.scss static/style.css --watch --recursive --compress | |
js: |
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
css: | |
./node_modules/node-sass/bin/node-sass resources/assets/sass/style.scss resources/assets/css/style.css --recursive --compress | |
./node_modules/postcss-cli/bin/postcss --use autoprefixer resources/assets/css/style.css -o resources/assets/css/style.css | |
./node_modules/.bin/cssnano resources/assets/css/style.css static/style.min.css --safe | |
watchcss: css | |
./node_modules/node-sass/bin/node-sass resources/assets/sass/style.scss static/style.css --watch --recursive --compress | |
pip_update: |
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 https = require('https'); | |
postBody = create_xml_string('49yyyyyy', '49xxxxx'); | |
var options = { | |
hostname: 'api.sipgate.net', | |
port: 443, | |
path: '/RPC2', | |
method: 'POST', | |
auth: '[email protected]:password', |
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
try: | |
vote_object = Vote(entry=entry, question=question, user=user, value=vote_result) | |
except IntegrityError: | |
vote_object = Vote.objects.get(entry=entry, question=question, user=user) | |
vote_object.value = vote_result | |
vote_object.save() |
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
from django.contrib import admin | |
from django.contrib.auth.admin import UserAdmin | |
from django.contrib.auth.models import User | |
class CustomUserAdmin(UserAdmin): | |
def __init__(self, *args, **kwargs): | |
super(UserAdmin, self).__init__(*args, **kwargs) | |
UserAdmin.list_display += ('last_login',) |