This file contains hidden or 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
void X(char* x, char *y) { | |
while(*x++ = *y++); | |
} |
This file contains hidden or 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
import sys | |
import json | |
from wsgiref.simple_server import make_server | |
from ws4py.websocket import WebSocket | |
from ws4py.server.wsgirefserver import WSGIServer, WebSocketWSGIRequestHandler | |
from ws4py.server.wsgiutils import WebSocketWSGIApplication | |
class MyWebSocket(WebSocket): | |
def __init__(self, sock, ps, es, e): |
This file contains hidden or 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
Системный инженер по администрированию и автоматизации процессов разработки | |
Systems administration and development environment automation engineer | |
Мы занимаемся разработкой решений для встроенных систем продуктов LG Electronics (телевизоры, автомобильные модули, роботы и пр.) | |
в распределенной интернациональной команде. | |
Мы ищем инженера, владеющего как навыками администрирования информационных сисетем, | |
так и навыками сборки программного обеспечения. | |
Обязанности: | |
Развертывание, настройка и поддержка сборочных Linux-серверов |
This file contains hidden or 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
#!/bin/bash -x | |
[ -z $1 ] && { echo "out?"; exit 1; } | |
[ -z $2 ] && { echo "author?"; exit 1; } | |
filter() { | |
while read e | |
do | |
$1 $e | |
done |
This file contains hidden or 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
# -*- encoding: utf-8 -*- | |
import sys, subprocess as sp | |
from time import time | |
def cmd(cmd, result = False, pipe = False): | |
class piper: | |
def __init__(self, process): | |
self.process = process | |
self.__iter__ = self.process.stdout.__iter__ |
This file contains hidden or 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
node { | |
TARGETS = TARGETS.split() | |
TARGETS.collect { this -> | |
(name, label) = this.split(':').plus([null]) | |
stage name, { | |
try { | |
println name, label | |
} catch(e) { |
This file contains hidden or 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
( | |
docker exec -i build \ | |
find test-results \ | |
-name "*.html" -print0 | |
docker exec -i build \ | |
find artifacts \ | |
`for target in $TARGETS | |
do | |
echo -or -name "$target-*.ipk" -print0 |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys, os | |
import gi | |
gi.require_version('Gst', '1.0') | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('GdkX11', '3.0') | |
gi.require_version('GstVideo', '1.0') | |
from gi.repository import Gst, Gtk, GLib, GdkX11, GstVideo |
This file contains hidden or 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
gst-launch-1.0 filesrc location="You're.The.Worst.s03e01.WEBDL.720p.NewStudio.TV.mkv" ! decodebin name=decoded | |
decoded.src_0 ! queue ! xvimagesink | |
decoded.src_2 ! queue ! pulsesink device=bluez_sink.00_02_3C_27_33_BD.a2dp_sink | |
decoded.src_1 ! queue ! pulsesink device=alsa_output.pci-0000_00_1b.0.analog-stereo |
This file contains hidden or 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
a = 0xdeadbeef | |
print bin(a) | |
def gbits(a): | |
while a: | |
yield a & 0x1 | |
a >>= 1 | |
print tuple(bit for bit in gbits(0xdeadbeef)) |
NewerOlder