Skip to content

Instantly share code, notes, and snippets.

@hsab
hsab / Sora-prompts.md
Created November 17, 2025 08:18 — forked from ruvnet/Sora-prompts.md
Crafting Cinematic Sora Video Prompts: A complete guide

300+ Cinematic Sora Video Prompts

Introduction to Cinematic Sora Video Prompts

Welcome to the Cinematic Sora Video Prompts tutorial! This guide is meticulously crafted to empower creators, filmmakers, and content enthusiasts to harness the full potential of Sora, an advanced AI-powered video generation tool.

By transforming textual descriptions into dynamic, visually compelling video content, Sora bridges the gap between imagination and reality, enabling the creation of professional-grade cinematic experiences without the need for extensive technical expertise.

What This Tutorial Offers

@hsab
hsab / claude-code-prompt.txt
Created August 22, 2025 16:25 — forked from agokrani/claude-code-prompt.txt
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
@hsab
hsab / Apply LUT (LookUpTable).js
Created June 7, 2025 00:23 — forked from kishmiryan-karlen/Apply LUT (LookUpTable).js
A function that helps to apply LUT to image. Make sure to change the canvas IDs or to create temporary canvases.
/**
* Created by Karlen on 13-Aug-14.
*/
var imageContext = document.getElementById('imageCanvas').getContext('2d'),
lutContext = document.getElementById('lutCanvas').getContext('2d');
function applyLUT(image, lut) {
var imageData, lutData, iData, lData;
@hsab
hsab / bokeh_notebook_image_figure.py
Created March 14, 2021 16:56 — forked from victor-shepardson/bokeh_notebook_image_figure.py
dynamic RGB image figure in bokeh+jupyter for monitoring GAN training, etc. import or paste into cell.
try:
from bokeh.io import push_notebook, output_notebook, show
from bokeh.plotting import figure
output_notebook()
def dynamic_image_figure(w,h):
"""create an RGB image figure in current cell and return an update function for it"""
def im2bokeh(img):
img = (img*255).astype(np.uint8)
img = np.dstack([img, np.ones(img.shape[:2], np.uint8) * 255])
img = np.squeeze(img.view(np.uint32))
@hsab
hsab / worldSpace_to_RenderSpace.py
Created May 22, 2019 20:54
Blender World Space to Render Pixel Space
# from https://blender.stackexchange.com/questions/882/how-to-find-image-coordinates-of-the-rendered-vertex
# ===================
# |(0,0) |
# | |
# | |
# | |
# | (x,y)|
# ===================
import bpy
@hsab
hsab / text.sh
Created April 13, 2019 01:52
convert --> mkbitmap --> potrace
for file in ./Layers\ PNG/*.png; do
filename=$(basename -- "$file")
filename=${filename%.*}
convert $file ./Layers\ BMP/"${filename}.bmp"
done
for file in ./Layers\ BMP/*.bmp; do
filename=$(basename -- "$file")
filename=${filename%.*}
mkbitmap -o ./Layers\ PBM/"${filename}.pbm" -x -t 0.9 -i -b 20 $file
@hsab
hsab / open_text_in_external.py
Created September 5, 2018 03:21
Add a button to Text Editor header to open the file with the default application.
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@hsab
hsab / run-program.ahk
Created September 2, 2018 21:59
Run a program with a keyboard shortcut with AutoHotKey
; This is a simple and pretty generic example of an AutoHotkey script to run a
; program when you press a keyboard shortcut. Add as many of these as you want
; to a .ahk file, and set that to be run at startup.
; See the Hotkeys reference [1] for details of the modifiers and keys available.
; [1]: http://www.autohotkey.com/docs/Hotkeys.htm
; Win+Alt+G - Open Gmail in Chrome
@hsab
hsab / camera_image_plane_fix_for_all.py
Created August 29, 2018 15:48
Blender: Fix depth and ratio of CameraImagePlanes for all scenes
import bpy
from bpy_extras.image_utils import load_image
from mathutils import Vector, Euler
import math
from math import sqrt
C = bpy.context
D = bpy.data
def SetupDriverVariables(scene, driver, imageplane):
@hsab
hsab / import_scenes.py
Last active August 29, 2018 16:12
Blender: Import Scenes from Bunch of Files
import bpy
import os
import ntpath
D = bpy.data
C=bpy.context
path = 'D:\odrive\Cloud\Gutter\Outlier 2.0\Blends'
def listdir_fullpath(d):