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
/* GStreamer | |
* Copyright (C) 2008 Wim Taymans <wim.taymans at gmail.com> | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Library General Public | |
* License as published by the Free Software Foundation; either | |
* version 2 of the License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
package main | |
import ( | |
"log" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"strings" | |
ps "github.com/mitchellh/go-ps" |
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
#include <memory> | |
#include <cstdlib> | |
#include <restbed> | |
using namespace std; | |
using namespace restbed; | |
class CustomLogger : public Logger | |
{ |
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/python3 | |
__author__ = 'vigurskiy' | |
import sys | |
import difflib | |
import re | |
import os | |
version_template_arcus = '\A\d+\.\d+\.\d+\.\d+ \[\d{1,2}\.\d{1,2}\.\d{2,4}\]\s{1}' | |
version_template = '\A\d+\.\d+\.\d+\.\d+ \[\d{1,4}\.\d{1,2}\.\d{1,2}\]\s{1}' |
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
from collections import defaultdict, deque | |
class Graph(object): | |
def __init__(self): | |
self.nodes = set() | |
self.edges = defaultdict(list) | |
self.distances = {} | |
def add_node(self, value): |
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
private void lockOrientation(){ | |
int orientation; | |
int rotation = ((WindowManager) getActivity().getSystemService( | |
Context.WINDOW_SERVICE)).getDefaultDisplay().getRotation(); | |
switch (rotation) { | |
case Surface.ROTATION_0: | |
orientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; | |
break; | |
case Surface.ROTATION_90: | |
orientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; |
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 java.io.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.SortedSet; | |
import java.util.TreeSet; | |
/** | |
* Created by vigursky on 17.08.2015. | |
*/ |
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 java.util.Properties; | |
import javax.mail.*; | |
import javax.mail.event.MessageCountEvent; | |
import javax.mail.event.MessageCountListener; | |
import com.sun.mail.imap.*; | |
public abstract class MailProtoPort { |
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
#include "sdk30.h" | |
#include "ip_.h" | |
#include "timer.h" | |
#define UDP 0 | |
int logSockData(char* data, int Size, struct sockaddr_in *from); | |
int isMoreLogSize(int size); | |
int openLogFile(void); | |
void setMyEthParams(char eth_str[32]); |
NewerOlder