This file contains 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
// gcc src/decoder.c -lavcodec -lavformat | |
#include <libavcodec/avcodec.h> | |
#include <libavformat/avformat.h> | |
int main(int argc, char *argv[]) { | |
char *filename = "/home/msa/Videos/Cowspiracy.2014.1080p-EGN.mkv"; | |
av_register_all(); |
This file contains 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
require "./sev/*" | |
module Sev | |
puts "Hello" | |
@[Link("m")] | |
@[Link("avcodec")] | |
@[Link("avformat")] | |
lib AvFormat | |
fun av_register_all |
This file contains 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
$ crystal build src/hello.cr --release | |
$ time ./hello | |
Hello world | |
real 0m0.003s | |
user 0m0.000s | |
sys 0m0.004s | |
$ time ruby hello.rb |
This file contains 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
<object id="videoplayer354" type="application/x-shockwave-flash" data="http://localhost:3000/player/uppod.swf" width="500" height="375"> | |
<param name="bgcolor" value="#3333" /> | |
<param name="allowFullScreen" value="true" /> | |
<param name="allowScriptAccess" value="always" /> | |
<param name="movie" value="http://localhost:3000/player/uppod.swf" /> | |
<param name="flashvars" value="comment=Video&st=http://localhost:3000/player/st/video205-524.txt&file=http://localhost:3000/video.mp4" /> | |
</object> |
This file contains 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
.header | |
@extend .container | |
.brand | |
float: left | |
span | |
+text-hide | |
.links |
This file contains 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
#include <iostream> | |
#include <conio.h> | |
using namespace std; | |
int main() | |
{ | |
int period, interest; | |
float interest_in_period, amount, income; |
This file contains 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
#include <iostream> | |
#include <conio.h> // В этой библиотеке "живет" - getch(); | |
/* | |
Исходные данные | |
--------------- | |
Сумма вклада | |
Срок вклада, в месяцах | |
*/ |
This file contains 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
class Object | |
def blank? | |
self.nil? | |
end | |
def present? | |
!blank? | |
end | |
end |
This file contains 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
require 'rubygems' | |
require 'bundler/setup' | |
require 'coffee-script' | |
require 'sass' | |
require 'fileutils' | |
require 'execjs' | |
require 'multi_json' | |
support_pattern = '{**/*.serenade,**/*.coffee,**/*.sass}' |
This file contains 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
window.sleep = (ms, and_runs) -> | |
flag = false | |
runs -> | |
setTimeout -> | |
flag = true | |
, ms | |
waitsFor -> | |
flag |
NewerOlder