Related to Nikeza issue #77
Authentication
- Users
#!/bin/bash | |
# Written 2018-11-15 by 4410287 | |
# This script will create a backup file of a postgres database and compress it. It is capable of access a local or remote server to pull the backup. After creating a new backup, it will delete backups that are older than 15 days, with the exception of backups created the first of every month. It is recommended to create a seperate database user specifically for backup purposes, and to set the permissions of this script to prevent access to the login details. Backup scripts for different databases should be run in seperate folders or they will overwrite each other. | |
HOSTNAME= | |
USERNAME= | |
PASSWORD= | |
DATABASE= |
class Employee(object): | |
def __init__(self, lastname, clock_number, hire_date): | |
self.last_name = lastname | |
self.clock_number = clock_number | |
self.hire_date = hire_date | |
# Fork this gist and continue adding code :) |
Related to Nikeza issue #77
Authentication
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp1.1</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="Program.fs" /> | |
</ItemGroup> |
The idea behind this is to research and experiment with "smart contract" funding for open source and free software.
from turtle import * | |
import Tkinter | |
class flag(object): | |
''' | |
classdocs | |
''' | |
def __init__(self, params): |
""" | |
Dude, | |
A Python class is something that defines a thing. | |
Huh? | |
Let me explain. | |
Say we are told to create an app about beds. Yes, beds. | |
Computers don't know what beds are (otherwise they'd be sleeping all day). | |
It is our job to tell them what a bed is and how it works. |
def maybe(fn_true, fn_false): | |
""" | |
Call me maybe | |
fn_true = function that will run if evaluates to true | |
fn_false = function that will run if evaluate to false | |
Both functions must return tuple(Boolean, any type value) |
""" | |
Roman Numeral calculator | |
""" | |
def value(numeral): | |
""" | |
numeral = string | |
Returns base 10 value of roman numeral | |
if found else returns None |
class testDelay(object): | |
""" | |
Measures, tracks, and saves script delay into txt file | |
""" | |
def __init__(self, accUser=None, accKey=None, myMask=None): | |
self.__accUser=accUser | |
self.__accKey=accKey | |
self.__myMask=myMask |