mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy
to install it on OS X.
#!/bin/bash | |
W=`identify ./large.jpg | cut -f 3 -d " " | sed s/x.*//` #width | |
H=`identify ./large.jpg | cut -f 3 -d " " | sed s/.*x//` #height | |
if [[ $W > $H ]]; then | |
NW=$H; | |
else | |
NW=$W; |
#!/bin/bash | |
W=`identify ./large.jpg | cut -f 3 -d " " | sed s/x.*//` #width | |
H=`identify ./large.jpg | cut -f 3 -d " " | sed s/.*x//` #height | |
if [[ $W > $H ]]; then | |
NW=$H; | |
else | |
NW=$W; |
#!/bin/zsh | |
len=30 | |
x="" | |
for i in *.mp4 | |
do | |
x="$x $i -mix $len -mixer luma " | |
done | |
x="melt$x -filter greyscale -filter oldfilm -consumer avformat:fade_$(date +%s).mp4 vcodec=libx264 b=5000k acodec=aac ab=70k" |
#!/bin/zsh | |
mkdir -p {frames,final}; | |
ffmpeg -i 03.mp4 -r 25 -qscale:v 2 frames/%05d.jpg ; | |
framesNumber=$(ls ./frames/*.jpg |wc -l|tr -d ' '); | |
W=720 |
#!/bin/zsh | |
mkdir -p {frames,ftop,fbottom,final}; | |
ffmpeg -i IMG_7197.mov -r 25 -qscale:v 2 frames/%05d.jpg ; | |
framesNumber=$(ls ./frames/*.jpg |wc -l|tr -d ' '); | |
C_H=540 | |
H=1280 |
#include <opencv/cv.h> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
int main( int argc, char** argv ) | |
{ |
#!/bin/zsh | |
len=30 | |
x="" | |
for i in *.mp4 | |
do | |
x="$x $i -mix $len -mixer luma " | |
done | |
x="melt$x -filter greyscale -filter oldfilm -consumer avformat:fade_$(date +%s).mp4 vcodec=libx264 b=5000k acodec=aac ab=70k" |
/* | |
* Licensed to GraphHopper and Peter Karich under one or more contributor | |
* license agreements. See the NOTICE file distributed with this work for | |
* additional information regarding copyright ownership. | |
* | |
* GraphHopper licenses this file to you 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 |
mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy
to install it on OS X.
counter=0; var ids = []; | |
for(var i=0; i < document.getElementsByClassName('_42ft _4jy0 _5lzj _3spg _4jy3 _517h _51sy').length; i++){ | |
var d = document.getElementsByClassName('_42ft _4jy0 _5lzj _3spg _4jy3 _517h _51sy')[i]; | |
if(!/hidden_elem/g.test(d.className)){ | |
counter++; | |
ids.push(i); | |
} | |
} | |
console.log(counter); |