Skip to content

Instantly share code, notes, and snippets.

View tasinttttttt's full-sized avatar

Tayeb B. tasinttttttt

View GitHub Profile
@tasinttttttt
tasinttttttt / copyPhysics.py
Last active November 11, 2015 06:42
Blender
import bpy
# Create a "template" object with the physics to copy from
scene = bpy.context.scene
scene.objects.active = bpy.data.objects["template"]
for obj in scene.objects:
if obj.type == 'MESH':
obj.select = True
import schedule
import time
def job():
print("I'm working...")
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)
@tasinttttttt
tasinttttttt / AE 30fps frame-minute counter
Last active August 29, 2015 14:23
AfterEffects scripts
rate = 1; // 2 = 2x speed
clockStart = 0; //negative for countdown
function padZero(n){ //utility
if (n < 10) return "0" + n else return "" + n
}
clockTime = clockStart + rate * (timeToFrames(t = time + thisComp.displayStartTime, fps = 1.0 / thisComp.frameDuration, isDuration = false) - inPoint); //inPoint means layer start.
if (clockTime < 0){ // negative sign for countdown
```
ffmpeg.exe -r 25 -i image%04d.png -vcodec libx264 output.mp4
```
syntax
ffmpeg.exe -r fps -i input -vcodec codec output.ext
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_libc.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tbayri <tbayri@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/04 12:31:58 by tbayri #+# #+# */
/* Updated: 2016/11/15 15:19:04 by tbayri ### ########.fr */
/* */
@tasinttttttt
tasinttttttt / valgrind command
Last active December 16, 2016 13:50
C commands
valgrind --track-origins=yes [binary]
@tasinttttttt
tasinttttttt / Makefile
Last active March 21, 2017 14:00
Makefile ft_printf
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tbayri <tbayri@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/03/21 14:13:56 by tbayri #+# #+# #
# Updated: 2017/03/21 14:50:00 by tbayri ### ########.fr #
# #
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tbayri <tbayri@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/21 12:43:05 by tbayri #+# #+# */
/* Updated: 2017/05/13 18:38:25 by tbayri ### ########.fr */
/* */
@tasinttttttt
tasinttttttt / GIF-Screencast-OSX.md
Created February 6, 2018 20:11 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@tasinttttttt
tasinttttttt / position_swapper.py
Last active September 1, 2021 06:18
c4d position swap
'''
Position Swapper 0.0.1
tbayri <tayeb.dev>
<Do cool shit with it> kinda license
'''
import c4d
from c4d import gui
# Unique id numbers for each of the GUI elements