Skip to content

Instantly share code, notes, and snippets.

View nooga's full-sized avatar
😎

Marcin Gasperowicz nooga

😎
View GitHub Profile
+ Setting up common submodule
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
There is something wrong with your source tree.
You are missing common/gst-autogen.sh
// save as humble.js
//$ node humble.js
// and then open http://localhost:9000/ in your browser (except Opera ;D)
var r = typeof require != "undefined" ? require : null, i = 1
a = function(l) { return l[0] }, d = function(l) { return l.slice(1) },
c = function(a,d) { return d.unshift(a) && d },
o = function(f,g) { return function(x) {return f(g(x))} },
m = function(f,l) { return a(l)?c(o(f,a)(l), m(f,d(l))):[] },
n = function(f,a,b) { return f(a)+f(b) }
function parse(text) {
return text.split('\n')
.map(function(l) {
return l.split(/\s+/).map(Number)
}) };
var fs = require('fs')
, filename = "myfile.txt"
, data = fs.readFileSync(filename, { encoding: 'utf8'} );
$ gst-launch-1.0 -v tcpclientsrc host=192.168.0.102 port=3060 ! jpegdec ! video/x-raw,framerate=15/1 ! autovideosink
Ustawianie potoku na PAUZOWANIE...
Potok jest PRZEWIJANY...
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)1:4:0:0, framerate=(fraction)0/1
B??D: od elementu /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0: Wewn?trzny b??d przep?ywu danych.
Dodatkowe informacje diagnostyczne:
gstbasesrc.c(2865): void gst_base_src_loop(GstPad *) (): /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0:
streaming task paused, reason not-negotiated (-4)
B??D: potok odmawia przewini?cia.
Ustawianie potoku na NULL...
@nooga
nooga / gist:18fb346deafc77ad6082
Last active August 29, 2015 14:01
Kraina Grzybów.
/* NxtData needs you! Zainteresowany/na pracą z nami?
Dokończ lub zhackuj kod i uzyskaj sekretny numer.
Jeśli Ci się uda - dzwoń śmiało! Hasło: Skarabeusz
PS. To nie jest test z JS :) */
function ja(nr) {
// ???
@nooga
nooga / suckdit.cljs
Created July 11, 2014 11:17
Reddit image crawler w/infinite scroll
(ns suckdit.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [goog.dom :as dom]
[goog.events :as events]
[cljs.core.async :refer [<! put! chan timeout]])
(:import [goog.net Jsonp]
[goog Uri]))
(def SUBREDDIT "pics")
Ld ~/Library/Developer/Xcode/DerivedData/Codename-butfnvruizhqqgflwxgsxchrtglc/Build/Intermediates/ArchiveIntermediates/Codename/InstallationBuildProductsLocation/Applications/Codename.app/Codename normal armv7
cd ~/Codename-iOS-Client
export IPHONEOS_DEPLOYMENT_TARGET=6.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L~/Library/Developer/Xcode/DerivedData/Codename-butfnvruizhqqgflwxgsxchrtglc/Build/Intermediates/ArchiveIntermediates/Codename/BuildProductsPath/Debug-iphoneos -F~/Library/Developer/Xcode/DerivedData/Codename-butfnvruizhqqgflwxgsxchrtglc/Build/Intermediates/ArchiveIntermediates/Codename/BuildProductsPath/Debug-iphoneos -F~/Library
Undefined symbols for architecture armv7:
"_kVTCompressionPropertyKey_NumberOfPendingFrames", referenced from:
_gst_vtenc_handle_frame in GStreamer(libgstapplemedia_a_armv7_-libgstapplemedia_la-vtenc.o)
"_kVTCompressionPropertyKey_MaxKeyFrameInterval", referenced from:
_gst_vtenc_set_property in GStreamer(libgstapplemedia_a_armv7_-libgstapplemedia_la-vtenc.o)
_gst_vtenc_set_format in GStreamer(libgstapplemedia_a_armv7_-libgstapplemedia_la-vtenc.o)
"_kVTCompressionPropertyKey_ExpectedFrameRate", referenced from:
_gst_vtenc_set_format in GStreamer(libgstapplemedia_a_armv7_-libgstapplemedia_la-vtenc.o)
"_kVTCompressionPropertyKey_AverageBitRate", referenced from:
_gst_vtenc_set_property in GStreamer(libgstapplemedia_a_armv7_-libgstapplemedia_la-vtenc.o)
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
/* Declare integer datatypes for each number of bits */
typedef uint_least8_t u8; typedef int_least8_t s8;
typedef uint_least16_t u16; typedef int_least16_t s16;
typedef uint_least32_t u32; typedef int_least32_t s32;
typedef uint_least64_t u64; typedef int_least64_t s64;
var Headout = {
apply: function() {
return true;
},
code: function() {
console.log("I", this.a.join(' '), 'code at Headout');
this.a = [];
return this;
},
a: []