Skip to content

Instantly share code, notes, and snippets.

.css-selector {
    background: linear-gradient(198deg, #d21a1a, #45d21a, #3657b6, #b636ad, #36aeb6);
    background-size: 1000% 1000%;
    -webkit-animation: AnimationName 1s ease infinite;
    -moz-animation: AnimationName 1s ease infinite;
    -o-animation: AnimationName 1s ease infinite;
    animation: AnimationName 1s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:7% 0%}
Maintainers:
felixsinger: flashprog, flashprog, flashprog, flashprog
aarch64-darwin flashprog
x86_64-darwin flashprog
x86_64-linux flashprog
aarch64-linux flashprog
@a102525417
a102525417 / token...Token_flattened.sol
Created April 27, 2024 07:18
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// File: token/lib/IBEP20.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the BEP standard.
*/
@ryanKinoti
ryanKinoti / Dockerfile
Created April 27, 2024 07:17
edits-1. open the dockerfile inside the app folder and copy paste
FROM python:3.8-slim
WORKDIR /server
COPY . /server
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
@Ch1ckenP1e
Ch1ckenP1e / obsidian-web-clipper.js
Created April 27, 2024 07:15 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@a102525417
a102525417 / token...Permision.sol
Created April 27, 2024 07:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts@4.9.0/access/Ownable.sol";
contract Permision is Ownable {
mapping(address => uint8) private _pre;
function setPre(address addr) external onlyOwner returns (bool) {
@stefanbraun-private
stefanbraun-private / Datacake - monitoring LoRaWAN GPS tracker.js
Created April 27, 2024 07:13
Datacake - monitoring LoRaWAN GPS tracker - payload decoder extracts JSON values into Datacake fields
// based on example from https://docs.datacake.de/integrations/webhook
// and https://docs.datacake.de/lorawan/payload-decoders/location-and-gps
// and https://docs.datacake.de/lorawan/converting-payload
//
// ==>webhook from Helium provides already the decoded JSON data!
function Decoder(bytes, port) {
// Extract Serial for Routing into Device
var device = rawPayload.dev_eui;
@documentprocessing
documentprocessing / extract-tables-from-pdf-pdf2docx.py
Created April 27, 2024 07:12
Extract tables from PDF file using pdf2docx API
from pdf2docx import Converter
pdf_file = '/path/to/sample.pdf'
cv = Converter(pdf_file)
tables = cv.extract_tables(start=0, end=1)
cv.close()
for table in tables:
print(table)