Skip to content

Instantly share code, notes, and snippets.

View imacros-cheatsheet.js
// iMacro CheatSheet - Command Reference
// iMacros supports 3 types of variables:
// * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro.
// * Built-in variables. They contain certain values set by iMacros.
// * User-defined variables. They are defined in-macro using the SET command.
hillmanli-seekers /
Last active Nov 1, 2020
BigDecimal vs double: illustration of accuracy and performance impact
import java.math.BigDecimal;
import java.util.function.Consumer;
import java.util.function.DoubleSupplier;
public class TestDouble {
private static double doubleTotal = 0;
private static double kahanDoubleTotal = 0;
baderj /
Last active Nov 1, 2020
Example how to use the API v3 of "The Movie Database" ( Saves all available posters for the movie with IMDb id tt0095016 to the current folder, using the maximum available resolution.
import os
import requests
IMG_PATTERN = '{imdbid}/images?api_key={key}'
KEY = '<your_api_key>'
def _get_json(url):
r = requests.get(url)
return r.json()
tekin / .gitattributes
Last active Nov 1, 2020
An example .gitattributes file that will configure custom hunk header patterns for some common languages and file formats. See for more details.
View .gitattributes
*.c diff=cpp
*.h diff=cpp
*.c++ diff=cpp
*.h++ diff=cpp
*.cpp diff=cpp
*.hpp diff=cpp
*.cc diff=cpp
*.hh diff=cpp
*.m diff=objc
*.mm diff=objc
View VMware Workstation 15.x.x serial key
Serial Keys:
View AnimationName-1604190974599-683.css
.css-selector {
    background: linear-gradient(270deg, #ea0000, #009ef7, #43f700, #ffab00, #ff0085);
    background-size: 1000% 1000%;
    -webkit-animation: AnimationName 35s ease infinite;
    -moz-animation: AnimationName 35s ease infinite;
    -o-animation: AnimationName 35s ease infinite;
    animation: AnimationName 35s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 50%}
View gd-gif.php
//php gd-gif.php image.gif gd-image.gif
$gif = imagecreatefromgif($argv[1]);
imagegif($gif, $argv[2]);
itzg /
Created Aug 24, 2018
Example of configuring Kafka Streams within a Spring Boot application with an example of SSL configuration
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.KafkaStreams;
import org.apache.kafka.streams.StreamsBuilder;
import org.apache.kafka.streams.StreamsConfig;
import org.apache.kafka.streams.Topology;
import org.apache.kafka.streams.kstream.GlobalKTable;
import org.apache.kafka.streams.kstream.KStream;
import org.apache.kafka.streams.kstream.Materialized;
dasMulli / DemoSetup.wixproj
Last active Nov 1, 2020
Demo wix project to publish a self-contained .NET Core app
View DemoSetup.wixproj
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="">
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
acbetter /
Last active Nov 1, 2020
Image Viewer Example by PyQt5 and Python 3
# -*- coding: utf-8 -*-
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
from PyQt5.QtWidgets import QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \
qApp, QFileDialog
You can’t perform that action at this time.