This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Transcribe long videos via OpenAI Audio API in 1400s chunks | |
| openai_transcribe() { | |
| local USAGE | |
| USAGE=$'%F{cyan}Usage:%f openai_transcribe <input_video> <output_text> [--model MODEL] [--chunk SECONDS] [--format text|srt|vtt|json]\n'\ | |
| $'%F{cyan}Example:%f openai_transcribe "2025-09-19 11-04-11.mkv" meeting.txt --chunk 1400 --model gpt-4o-transcribe\n'\ | |
| $'\nOptions:\n'\ | |
| $' --model OpenAI model (default: gpt-4o-transcribe)\n'\ | |
| $' --chunk Chunk length in seconds (default: 1400)\n'\ | |
| $' --format response_format (text|srt|vtt|json; default: text)\n'\ | |
| $'\nNotes:\n'\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createStore } from 'zustand' | |
| import { persist, StorageValue } from 'zustand/middleware' | |
| const store = createStore( | |
| persist( | |
| () => ( {} ), | |
| { | |
| name: 'store-state', | |
| storage: { | |
| async getItem ( name: string ): StorageValue<unknown> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| supervisor { | |
| php-fpm | |
| } | |
| } | |
| :8080 | |
| php_fastcgi 127.0.0.1:9000 | |
| root * . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| I wrote this function to progressively obfuscate text in MAKEbook.io. When it KINDA worked, I just used it. | |
| It can take a lot of improvement. I kinda just tweaked the values until it was good enough. It's not SO progressive though. | |
| It takes all the output of your PHP scripts via ob_start(), reroutes that to the obfuscation function. | |
| You should check if user paid for book or not, then either run ob_start or not! | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import firebase from 'firebase' | |
| import { filter, map } from 'lodash' | |
| import { makeExecutableSchema } from 'graphql-tools' | |
| firebase.initializeApp({ | |
| databaseURL: 'https://grafire-b1b6e.firebaseio.com', | |
| }) | |
| const mapSnapshotToEntity = snapshot => ({ id: snapshot.key, ...snapshot.val() }) | |
| const mapSnapshotToEntities = snapshot => map(snapshot.val(), (value, id) => ({ id, ...value })) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Recetas de la abuela</title> | |
| </head> | |
| <body> | |
| <script> | |
| document.location.href = "https://play.google.com/store/apps/details?id=miquelcamps.com.recetas&via=fb"; | |
| </script> | |
| </body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var webpack = require('webpack'), | |
| path = require('path'), | |
| ExtractTextPlugin = require("extract-text-webpack-plugin"), | |
| isDev = process.env.NODE_ENV; | |
| var config = { | |
| cache: true, | |
| resolve: { | |
| extensions: ["", ".js", ".css", ".styl"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <comment-box> | |
| <h1>{ opts.title }</h1> | |
| <comment-list url={ opts.url } comments={ comments } /> | |
| <comment-form url={ opts.url } /> | |
| this.comments = [] | |
| add(comment) { | |
| this.comments.push(comment) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| // Generated on 2014-04-14 using generator-leaflet 0.0.14 | |
| var gulp = require('gulp'); | |
| var open = require('open'); | |
| var wiredep = require('wiredep').stream; | |
| // Load plugins | |
| var $ = require('gulp-load-plugins')(); |
NewerOlder