(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Src Reference: http://bernaerts.dyndns.org/download/ubuntu/install-mozilla-addon Article: http://bernaerts.dyndns.org/linux/74-ubuntu/271-ubuntu-firefox-thunderbird-addon-commandline
sudo apt-get install xvfb
sudo Xvfb :99.0 -ac
export DISPLAY=:99.0
# source: https://www.safaribooksonline.com/library/view/python-cookbook-2nd/0596007973/ch09s03.html | |
import threading | |
class TestThread(threading.Thread): | |
def _ _init_ _(self, name='TestThread'): | |
""" constructor, setting initial variables """ | |
self._stopevent = threading.Event( ) | |
self._sleepperiod = 1.0 | |
threading.Thread._ _init_ _(self, name=name) | |
def run(self): |
#!/bin/sh | |
# | |
# american fuzzy lop - pause a set of fuzzers | |
# -------------------------------------- | |
# | |
# By @rantyben, based on afl-whatsup, which is: | |
# Written and maintained by Michal Zalewski <[email protected]> | |
# | |
# Copyright 2015 Google Inc. All rights reserved. | |
# |
set(LIBFOO_TAR_HEADERS | |
"${CMAKE_CURRENT_BINARY_DIR}/include/foo/foo.h" | |
"${CMAKE_CURRENT_BINARY_DIR}/include/foo/foo_utils.h" | |
) | |
add_custom_command(OUTPUT ${LIBFOO_TAR_HEADERS} | |
COMMAND ${CMAKE_COMMAND} -E tar xzf "${CMAKE_CURRENT_SOURCE_DIR}/libfoo/foo.tar" | |
COMMAND ${CMAKE_COMMAND} -E touch ${LIBFOO_TAR_HEADERS} | |
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/include/foo" | |
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/libfoo/foo.tar" |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>PhotoSwipe demo</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<!-- Import PhotoSwipe Styles --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.0/photoswipe.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.0/default-skin/default-skin.css"> |
This explains how to setup for GitHub projects which automatically generates Doxygen code documentation and publishes the documentation to the gh-pages
branch using Travis CI.
This way only the source files need to be pushed to GitHub and the gh-pages branch is automatically updated with the generated Doxygen documentation.
Get an account at Travis CI. Turn on Travis for your repository in question, using the Travis control panel.
To create a clean gh-pages
branch, with no commit history, from the master branch enter the code below in the Git Shell. This will create a gh-pages branch with one file, the README.md
in it. It doesn't really matter what file is uploaded in it since it will be overwritten when the automatically generated documentation is published to th
""" | |
Upsert gist | |
Requires at least postgres 9.5 and sqlalchemy 1.1 | |
Initial state: | |
[] | |
Initial upsert: |
"""A program that encodes and decodes hidden messages in images through LSB steganography""" | |
from PIL import Image, ImageFont, ImageDraw | |
import textwrap | |
def decode_image(file_location="images/encoded_sample.png"): | |
"""Decodes the hidden message in an image | |
file_location: the location of the image file to decode. By default is the provided encoded image in the images folder | |
""" | |
encoded_image = Image.open(file_location) |