View result.json
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
{ | |
"data":[ | |
[[1,1], [2,3], [1,5], [1,1]], | |
[[1,2], [2,2], [4,5], [1,2]] | |
] | |
} |
View lity.min.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
/*! Lity - v2.3.1 - 2018-04-20 | |
* http://sorgalla.com/lity/ | |
* Copyright (c) 2015-2018 Jan Sorgalla; Licensed MIT */.lity{z-index:9990;position:fixed;top:0;right:0;bottom:0;left:0;white-space:nowrap;background:#0b0b0b;background:rgba(0,0,0,0.9);outline:none !important;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity.lity-opened{opacity:1}.lity.lity-closed{opacity:0}.lity *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.lity-wrap{z-index:9990;position:fixed;top:0;right:0;bottom:0;left:0;text-align:center;outline:none !important}.lity-wrap:before{content:'';display:inline-block;height:100%;vertical-align:middle;margin-right:-0.25em}.lity-loader{z-index:9991;color:#fff;position:absolute;top:50%;margin-top:-0.8em;width:100%;text-align:center;font-size:14px;font-family:Arial,Helvetica,sans-serif;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}.lity-loading .lity-load |
View celeryd
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
CELERYD_NODES="bookgo-worker" | |
CELERY_BIN="/var/sites/bookgo/env/bin/celery" | |
CELERY_APP="bocrok" | |
CELERYD_CHDIR="/var/sites/bookgo/src" | |
# Set logging level to DEBUG | |
CELERYD_LOG_LEVEL="DEBUG" |
View dashboard.component.ts
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
import { Component, OnInit } from '@angular/core'; | |
import { FlashMessagesService } from 'angular2-flash-messages'; | |
import { HttpClient, HttpClientModule } from '@angular/common/http'; | |
import { AfterViewInit, ElementRef, Renderer } from '@angular/core'; | |
import { FormGroup, FormBuilder, Validators, FormsModule } from '@angular/forms'; | |
import { Recipe } from '../../models/recipe'; | |
import { Diary } from '../../models/diary'; | |
import { GetRecipesService } from '../../services/get-recipes.service'; | |
import { MorgningRecipes } from './../../models/morning-recipes'; |
View etc_nginx_sites-available_blog
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
server { | |
charset utf-8; | |
listen 8000; | |
server_name 188.166.100.169; | |
client_max_body_size 10m; | |
access_log /var/sites/blog/log/nginx.access.log; | |
error_log /var/sites/blog/log/nginx.error.log; |
View ssh-public-key
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDUfxiteH7DOGS4Js3bNdqc/WlEGfzgdITxdpxFNo4rzyV8BwBV4gQKiTGbzyD82uv9o7diFpxbV2YG8OlXZ2It10jgOZ3B+Kp8xSs2ONM3h53k0QzZ3LfyAEGHE0Zb6YI/JW/q+M4CChHBlnWws4K6uoZRnWBh36C+6XFr65QRvIaE2TZ9GE1rjU583J4aFP4GSJk9vFMKGFG3ROXZml/ow9HUZYgPuzpF6IFPtTeW0qUBL0qnQMeRnPhg8U5BOuaBcc7QaXMUYoZM7KwZKXL+f+8911QYq6xgKNMvx6MFer3IdFUKFo1B2xze5rZvvMSvUxhIj/NyouvXnw/XwNe7 kovalchuk@4YMXRZ1 |
View particlesjs-config.json
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
{ | |
"particles": { | |
"number": { | |
"value": 150, | |
"density": { | |
"enable": false, | |
"value_area": 1603.4120608655228 | |
} | |
}, | |
"color": { |
View views.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
def form_invalid(self, form): | |
print(form.errors) | |
print(self.request) | |
# print(help(self.request)) | |
request = self.request | |
request.method = 'GET' | |
return BookView.as_view(booking_form=form)(request=request, pk=1) |
View pipeline.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
from django.core.files.base import ContentFile | |
from urllib.request import urlopen | |
def avatar(backend, strategy, details, response, user=None, *args, **kwargs): | |
url = None | |
if backend.name == 'facebook': | |
url = "http://graph.facebook.com/{}/picture?type=large".format( | |
response['id']) | |
filename = 'fb_avatar_{}.jpg'.format(user.username) |
View gist:adb3e82a779e81f76714
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
#settings.py | |
BADGIFY_BADGE_MODEL = 'main.models.GuidaBadge' | |
#main.models | |
from badgify.models.base.badge import Badge as BaseBadge | |
class GuidaBadge(BaseBadge): | |
model_name = models.CharField(max_length=40) | |
required_number = models.IntegerField() |
NewerOlder