Skip to content

Instantly share code, notes, and snippets.

View morozgrafix's full-sized avatar

Sergey Morozov morozgrafix

View GitHub Profile
@davidondrej
davidondrej / AGENTS.md
Created April 11, 2026 10:00
default AGENTS.md template by David Ondrej

AGENTS.md

Project Overview

  • Project: [Name] — [one sentence describing what it does]
  • Target user: [e.g. developers, small businesses, lawyers]
  • My skill level: [beginner / intermediate / expert]
  • Stack: [e.g. Next.js, Supabase, Tailwind — or "see package files"]

Commands

  • Install: [e.g. npm install, pip install -r requirements.txt]
@szepeviktor
szepeviktor / Wistia-download-videos.md
Last active October 12, 2026 00:37
Download Wistia videos - Please do not misuse it!

Download Wistia videos

  1. right-click on the playing video, select Copy link
  2. find Wistia video ID in the copied link e.g. wvideo=tra6gsm6rl
    • alternative: look for e.g. hashedId=tra6gsm6rl in the page source
  3. load http://fast.wistia.net/embed/iframe/ + video ID in your browser
  4. look for "type":"original" in the page source and copy the URL from the next line e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
  • alternative: look for "type":"hd_mp4_video"
@PARC6502
PARC6502 / 0_README.md
Last active January 16, 2026 23:59
OpenSimplex Noise for openprocessing
@joncardasis
joncardasis / Storing-Images-On-Github.md
Last active August 8, 2026 00:54
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

anonymous
anonymous / slitscan_demo_video.py
Created January 17, 2016 16:08
Make video, demonstrating slit-scan photography
"""Make video, demonstrating slit-scan photography.
Sample is here: https://youtu.be/vz8gplAhDak
Both source and result videos are stored as sequences of PNG frames.
Source video must be in the current directory, frame names must have format 00001.png, 00002.png, ... etc.
Result video is stored in the 'output' folder, frame names having the same format.
Requirements: Python 2, PIL
Usage: run this script in the folder with soruce frames.
@grantland
grantland / README.md
Last active October 26, 2026 04:03
NextBus API
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class
@alexstone
alexstone / slack_notification.php
Created March 3, 2014 06:54
Fire a Slack Notification via CURL
<?php
// (string) $message - message to be passed to Slack
// (string) $room - room in which to write the message, too
// (string) $icon - You can set up custom emoji icons to use with each message
public static function slack($message, $room = "engineering", $icon = ":longbox:") {
$room = ($room) ? $room : "engineering";
$data = "payload=" . json_encode(array(
"channel" => "#{$room}",
"text" => $message,
@zimbatm
zimbatm / README.md
Last active December 28, 2015 22:39 — forked from jeroenbegyn/README.md
Fixes compatibility issues with the version 5.0.0 of the twitter gem.

Description

Simple Dashing widget (and associated job) to display a Twitter search. Uses Twitter API v1.1.

##Dependencies

twitter

Add it to dashing's gemfile:

@clochix
clochix / casperShell.js
Created October 8, 2013 09:37
Sample code to call a shell script from CasperJS
// (…)
var childProcess;
try {
childProcess = require("child_process");
} catch (e) {
this.log(e, "error");
}
if (childProcess) {
childProcess.execFile("/bin/bash", ["mycommand.sh", args1, args2, args3], null, function (err, stdout, stderr) {
this.log("execFileSTDOUT:", JSON.stringify(stdout), 'debug');