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 <string> | |
#include <vector> | |
template <class T> | |
struct Enum { | |
template <typename EType> | |
static const char* ToString(EType etype) { | |
return T::strType()[static_cast<int>(etype)]; | |
} |
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 <string> | |
#include <vector> | |
#include <algorithm> | |
typedef std::vector<std::string> EString; | |
template<class T> | |
struct Enum { | |
template<typename EType> |
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
Hahaha |
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
mobile_apis::Result::eType result_code = mobile_apis::Result::INVALID_ENUM; | |
const bool is_vr_invalid_unsupported = | |
Compare<hmi_apis::Common_Result::eType, EQ, ONE>( | |
vr_result_, | |
hmi_apis::Common_Result::INVALID_ENUM, | |
hmi_apis::Common_Result::UNSUPPORTED_RESOURCE); | |
const bool is_ui_invalid_unsupported = | |
Compare<hmi_apis::Common_Result::eType, EQ, ONE>( |
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
template <M> | |
class AsyncMessageProcessor { | |
Handle() = 0; | |
ProcessMessage(M m ) { | |
// put message in queue | |
} | |
Thread tread; // thread pop messages from queue and call Handle for each | |
void Stop() { | |
// forbid push |
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
function ready() { | |
cvlc ~/Downloads/Jobs\ Done.mp3 --play-and-exit | |
} | |
function bad_result() { | |
echo "Something is wrong" | festival --tts; | |
} | |
function notepad++ { |
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
// Scripts : | |
ps u | grep smart | grep -v grep | awk -v time="$(date +'%r')" '{print time, $6 }' | |
// Plot graph : | |
reset; | |
G_dat = './release4.1.0_no_logs_memory_usage.txt' | |
G_pic_w = 1000 | |
G_pic_h = 800 | |
G_Title = "SDL memory usage without logs"; | |
G_XLabel = "X - time"; |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# generate_png.py | |
# | |
# Copyright 2015 akutsan <akutsan@akutsan> | |
# | |
# Generate PNG file with preloaded cycled content | |
# | |
import argparse |
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
@startuml | |
frame "Script Executor"{ | |
[API Fasade] as FASADE | |
[Test cases executor] as RUNNER | |
} | |
[Test script] as SCRIPT | |
node "Test workstation"{ |
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
https://www.class-central.com/mooc/1725/coursera-algorithmic-thinking-part-1 | |
https://www.class-central.com/mooc/6040/coursera-a-developer-s-guide-to-the-internet-of-things-iot | |
https://www.class-central.com/mooc/7745/coursera-data-science-math-skills | |
https://www.class-central.com/mooc/7751/coursera-data-processing-using-python | |
https://www.class-central.com/mooc/339/coursera-algorithms-part-i | |
https://www.class-central.com/mooc/1701/openhpi-parallel-programming-concepts | |
https://www.class-central.com/mooc/1848/udacity-machine-learning-unsupervised-learning | |
https://www.class-central.com/mooc/2716/stanford-openedx-compilers | |
https://www.class-central.com/mooc/4013/udacity-intro-to-devops |
OlderNewer