Skip to content

Instantly share code, notes, and snippets.

mkdir -p $1/mobile/video
mkdir -p $1/veryHigh/video
mkdir -p $1/high/video
mkdir -p $1/medium/video
mkdir -p $1/low/video
ffmpeg -threads 8 -i $2 -acodec libfaac -aq 100 -vcodec libx264 -preset slow -crf 24 -r 15 -s 480x320 -profile:v baseline $1/mobile/video/video.mp4
ffmpeg -threads 8 -i $2 -acodec libfaac -aq 100 -vcodec libx264 -preset slow -crf 18 -r 15 -s 720x576 -profile:v baseline $1/veryHigh/video/video.mp4
ffmpeg -threads 8 -i $2 -acodec libvorbis -aq 100 -vcodec libvpx -preset slow -crf 18 -r 15 $1/veryHigh/video/video.webm
9
MobiVulp.
19
Mori vulputate nul.
29
Morbi vlputate nu MorbiVulpl
99
@PlloYNiiE
PlloYNiiE / HelloService.html
Created September 7, 2011 04:24
WSDL edit name
<h1>TestHello</h1>
<p>Hi there, this is an AXIS service!</p>
<i>Perhaps there will be a form for invoking the service here...</i>
@PlloYNiiE
PlloYNiiE / Qsort cilk
Created March 25, 2011 11:46
Qsort cilk
/* Pirapa Sirawuttinanon
* Quick Sort Serial */
#include <stdio.h>
#include "gettimeofday.h"
#include <cilk/cilk.h>
#include <time.h>
void srand( unsigned seed );
@PlloYNiiE
PlloYNiiE / sloc.count.all
Created March 22, 2011 17:09
sloc.count.all
Finding a working MD5 command....
Found a working MD5 command.
Computing results.
Warning! Unclosed PHP file /Users/NAzT/Desktop/ploiitopoi/the_hook.php, mode=1
SLOC Directory SLOC-by-Language (Sorted)
2206 ploiitopoi cpp=1633,php=573
@PlloYNiiE
PlloYNiiE / sloccout
Created March 22, 2011 17:06
sloccout
Total Physical Source Lines of Code (SLOC) = 1,633
Development Effort Estimate, Person-Years (Person-Months) = 0.33 (4.02)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 0.35 (4.24)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 0.95
Total Estimated Cost to Develop = $ 45,214
(average salary = $56,286/year, overhead = 2.40).
SLOCCount, Copyright (C) 2001-2004 David A. Wheeler
@PlloYNiiE
PlloYNiiE / motherfucker.cpp
Created March 21, 2011 23:12
motherfucker.cpp
if (this->A->getOrderVector()->size() == this->B->getOrderVector()->size())
{
this->totalStmt = this->A->getOrderVector()->size()-1;
this->equalStmt = imitate_count;
this->similarity_percent = this->equalStmt/this->totalStmt;
llvm::outs() << " Similarity Percentage: " <<this->A->getOrderVector()->size()/imitate_count<< "%\n";
llvm::outs() << " Similarity Percentage: " << this->A->getOrderVector()->size()/imitate_count << "%\n";
this->similarity_percent = this->A->getOrderVector()->size()/imitate_count*100;
@PlloYNiiE
PlloYNiiE / while.cpp
Created March 20, 2011 16:21
while.cpp
//#include <stdio.h>
int main() {
int test=950;
float number[10]={12,334,1,2,3,4,5,6,7,8};
int i;
float A=1.1;
int B = 3.1;
char ch1 = 'E';
char ch2;
float min = number[0];
@PlloYNiiE
PlloYNiiE / HandleTopLevelDecl.cpp
Created March 17, 2011 16:33
HandleTopLevelDecl.cpp
void MyASTConsumer::HandleTopLevelDecl( clang::DeclGroupRef d)
{
llvm::SmallVector<Decl*, 2> Decls;
static int count = 0;
clang::DeclGroupRef::iterator it;
for( it = d.begin(); it != d.end(); it++)
{
@PlloYNiiE
PlloYNiiE / f.cpp
Created March 17, 2011 11:02
f.cpp
#include "SieveStmtPrinter.h"
#include <string>
#include "collection.h"
#include <vector>
#include <sstream>
using namespace clang;
using namespace llvm;
int number = 0;
int orderNum = 0;