ffmpeg -f avfoundation -framerate 30 -s "640x480" -i "0" -c:v rawvideo -pix_fmt rgb24 -f caca -s "640x480" output4.mp4
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libcaca
ffmpeg -i vitrine.mp4 -vf scale=1024:-1 -q:vscale 0 vitrine.avi
| 'use strict' | |
| class YieldExtension { | |
| get tags () { | |
| return ['yield'] | |
| } | |
| parse (parser, nodes, lexer) { | |
| let tag = parser.nextToken() | |
| parser.skipSymbol(tag.value) |
ffmpeg -f avfoundation -framerate 30 -s "640x480" -i "0" -c:v rawvideo -pix_fmt rgb24 -f caca -s "640x480" output4.mp4
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libcaca
ffmpeg -i vitrine.mp4 -vf scale=1024:-1 -q:vscale 0 vitrine.avi
| /* | |
| * Copyright 2014 Chris Banes | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| #!/usr/bin/env node | |
| var fs = require('fs'), | |
| path = require('path'), | |
| child = require('child_process'), | |
| argf = '', | |
| deployDir = '/home/morrelinko/socialinko'; | |
| process.stdin.resume(); |
| public class ColorUtils { | |
| private static final double LM_RED_COEFFICIENT = 0.2126; | |
| private static final double LM_GREEN_COEFFICIENT = 0.7152; | |
| private static final double LM_BLUE_COEFFICIENT = 0.0722; | |
| public static int calculateRelativeLuminance(int color) { | |
| int red = (int) (Color.red(color) * LM_RED_COEFFICIENT); | |
| int green = (int) (Color.green(color) * LM_GREEN_COEFFICIENT); | |
| int blue = (int) (Color.blue(color) * LM_BLUE_COEFFICIENT); | |
| return red + green + blue; |
| // This script will boot app.js with the number of workers | |
| // specified in WORKER_COUNT. | |
| // | |
| // The master will respond to SIGHUP, which will trigger | |
| // restarting all the workers and reloading the app. | |
| var cluster = require('cluster'); | |
| var workerCount = process.env.WORKER_COUNT || 2; | |
| // Defines what each worker needs to run |
| <?php | |
| /** | |
| * @author Morrison Laju <[email protected]> | |
| */ | |
| class ArrayUtils | |
| { | |
| /** | |
| * Returns a new array created from another | |
| * containing only the keys that we want. |
| <?php | |
| // SETUP: | |
| // 1. Customize all the settings (stripe api key, email settings, email text) | |
| // 2. Put this code somewhere where it's accessible by a URL on your server. | |
| // 3. Add the URL of that location to the settings at https://manage.stripe.com/#account/webhooks | |
| // 4. Have fun! | |
| // set your secret key: remember to change this to your live secret key in production | |
| // see your keys here https://manage.stripe.com/account |
| var express = require('express'); | |
| var redis = require('redis'); | |
| const serverType = process.argv[2]; | |
| const serverHost = process.argv[3]; | |
| const serverPort = parseInt(process.argv[4]); | |
| const redisPort = 6379; | |
| const redisHost = '127.0.0.1'; |