Skip to content

Instantly share code, notes, and snippets.

View pndurette's full-sized avatar
🖖

Pierre Nicolas Durette pndurette

🖖
View GitHub Profile
import math
import os
import sys
# Blender imports
import bpy
from mathutils import Vector
"""
STL to rotated images sequence
@pndurette
pndurette / slack-alpha.sh
Last active March 3, 2021 21:16
Cursed script to convert text to Slack's :alphabet-*: emoji
#!/bin/bash
# $0 <text to convert>
# COLOUR=yellow $0 <text to convert>
TEXT="$@"
COLOUR="${COLOUR:-white}" # can be 'yellow'
REGEX='^[a-zA-Z\!\?\#\@\ ]+$'
[[ $TEXT =~ $REGEX ]] || \
@pndurette
pndurette / helloworld.yaml
Last active November 10, 2019 21:23
GitHub Actions: Beyond CI/CD Medium Post Gists
name: hello
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
@pndurette
pndurette / pay.ics
Last active October 23, 2024 10:25
iCal (.ics) template file for pay day event or Friday if on the weekend
BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART:20180101
DTEND:20180101
RRULE:FREQ=MONTHLY;BYMONTHDAY=13,14,15;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1
SUMMARY:Pay (15th)
END:VEVENT
END:VCALENDAR