- on your repo's root, run :
find . -type f | xargs chmod -x - commit this change on files :
commit -n -m 'fix: files permission from 100755 to 100644' - then with
vim .git/config, setfilemodeoption tofalse
[core]
filemode = false
| from flask import Flask, render_template, request | |
| from flask_wtf import FlaskForm | |
| from wtforms import (SubmitField, SelectMultipleField, widgets) | |
| class MultiCheckboxField(SelectMultipleField): | |
| widget = widgets.ListWidget(prefix_label=False) | |
| option_widget = widgets.CheckboxInput() | |
| class ExampleForm(FlaskForm): | |
| nums = MultiCheckboxField('label' |
| from flask import Flask | |
| from flask import request | |
| import json | |
| import requests | |
| import hashlib as hasher | |
| import datetime as date | |
| node = Flask(__name__) | |
| # Define what a Snakecoin block is | |
| class Block: |
| #! /usr/bin/env bash | |
| # Create the CA Key and Certificate for signing Client Certs | |
| openssl genrsa -des3 -out ca.key 4096 | |
| openssl req -new -x509 -days 365 -key ca.key -out ca.crt | |
| # Create the Server Key, CSR, and Certificate | |
| openssl genrsa -des3 -out server.key 1024 | |
| openssl req -new -key server.key -out server.csr |
| (function(window, document, JSON){ | |
| "use strict"; | |
| var SEP = '|', ua, opera, ie; | |
| /* | |
| * Collect Browser & Device Data | |
| */ | |
| var Collector = { | |
| /* | |
| * MD5 Checksum calculation | |
| */ |
Using: Flask, SQLAlchemy, Infinite-scroll
| {% extends 'base.html' %} | |
| {% import 'macros.html' as macros %} | |
| {% block content %} | |
| <div class="row"> | |
| <div class="col-xs-12 col-md-3 col-sm-4 col-sm-offset-4 col-md-offset-4 col-lg-3 col-lg-offset-4"> | |
| <div class="login-message"> | |
| Login to AwesomeService! | |
| </div> | |
| {% call macros.render_form(form, action_url=url_for('login_view'), action_text='Login', | |
| class_='login-form') %} |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| </head> | |
| <body> | |
| <form method="post"> | |
| {{ form.hidden_tag() }} | |
| {{ form.example }} |