Skip to content

Instantly share code, notes, and snippets.

View y-fedorov's full-sized avatar
🧑‍💻

Yaroslav Fedorov y-fedorov

🧑‍💻
View GitHub Profile
% ssh -l latistaadmin <Build host IP>
# sudo -i
# apt-get update
# apt-get -f install
# useradd -m jenkins -d /var/jenkins -r -U
# su jenkins
$ cd /var/jenkins
@y-fedorov
y-fedorov / dumpcl.c
Created August 19, 2016 07:58
Testing for OpenCL compatibility (MacOS)
//
// James @ http://stackoverflow.com/questions/7892955/how-can-i-test-for-opencl-compability
//
// clang -framework OpenCL dumpcl.c -o dumpcl && ./dumpcl
#include <stdio.h>
#include <stdlib.h>
#include <OpenCL/opencl.h>
@y-fedorov
y-fedorov / promise.html
Created April 27, 2016 14:29
Javascript Promise example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Promise code</title>
<script>
'use strict';
//Stage 1
var p1 = new Promise(function(resolve, reject) {
@y-fedorov
y-fedorov / main.cpp
Created January 25, 2016 10:03
Test example - size of structure.
//
// main.cpp
//
// Created by Yaroslav Fedorov on 12/01/16.
// Copyright © 2016 Yaroslav Fedorov. All rights reserved.
//
#include <iostream>
struct A {
//
// main.cpp
// How to copy class with pointers elegant way
// from: http://users.livejournal.com/_winnie/32542.html?thread=164126#t164126
//
// Created by Yaroslav Fedorov on 12/01/16.
// Copyright © 2016 Yaroslav Fedorov. All rights reserved.
//
#include <iostream>