Skip to content

Instantly share code, notes, and snippets.

View mpcsb's full-sized avatar
🏠
Working from home

mpcsb

🏠
Working from home
View GitHub Profile
@mpcsb
mpcsb / values_pointers.go
Created July 31, 2020 15:46 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
import os
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation, PillowWriter
import random
import pandas as pd
import imageio
def gen_random(n, lim):
message='In computing, plain text is the data (e.g. file contents) that represent only characters of readable material but not its graphical representation nor other objects (images, etc.). It may also include a limited number of characters that control simple arrangement of text, such as line breaks or tabulation characters. Plain text is different from formatted text, where style information is included, and from "binary files" in which some portions must be interpreted as binary objects (encoded integers, real numbers, images, etc.).'
message=message
def encode_message(message):
import binascii,zlib
byte_message=message.encode()
pressed=zlib.compress(byte_message)
return str(binascii.hexlify(pressed))[2:-1]
x=encode_message(message)
z=x[0:12]+x[12:]