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
from pyocd.core.helpers import ConnectHelper | |
from pyocd.flash.loader import FlashLoader | |
from pyocd.flash.eraser import FlashEraser | |
from pyocd.flash.file_programmer import FileProgrammer | |
class ClientOCD(): | |
board = None | |
target = None | |
session = None | |
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
#ifndef OTLDATETIME_H | |
#define OTLDATETIME_H | |
/* | |
* abstracao do otl_datetime | |
*/ | |
#include <iomanip> | |
#include <otlv4.h> | |
class OtlDatetime : public otl_datetime | |
{ |
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 <stdio.h> | |
#include <stdlib.h> | |
int maxDiff(int array[], int n) | |
{ | |
int maxDiff = 0; | |
for(int i = 1; i < n; i++) | |
{ | |
for(int j = 0; j < i; j++) | |
{ |
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 <stdlib.h> | |
#include <stdio.h> | |
typedef struct SinglyLinkedListNode | |
{ | |
int data; | |
SinglyLinkedListNode *next; | |
}SinglyLinkedListNode; | |
typedef struct SinglyLinkedList |
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
#!/bin/bash | |
readonly HDMI_STATUS="/sys/class/drm/card0/*HDMI*/status" | |
readonly HDMI_DISCONNECTED=$( grep -oq "disconnected" $HDMI_STATUS ) | |
change_sink() | |
{ | |
local stream="$1" | |
local stream_id="$( echo "$stream" | cut -f1 )" |
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
#!/bin/bash | |
readonly HDMI_STATUS="/sys/class/drm/card0/*HDMI*/status" | |
readonly HDMI_DISCONNECTED=$( grep -oq "disconnected" $HDMI_STATUS ) | |
change_sink() | |
{ | |
local stream="$1" | |
local stream_id="$( echo "$stream" | cut -f1 )" |
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
#!/bin/bash | |
pipe="pipe" | |
if [[ ! -p $pipe ]]; then | |
mkfifo $pipe | |
fi | |
while true | |
do |
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
import java.util.List; | |
import java.util.Arrays; | |
import java.util.ArrayList; | |
public class Paciente{ | |
String nome; | |
char sexo; | |
int idade; |
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
#!/bin/bash | |
readonly ARGC=$# | |
readonly ARGV=( "$@" ) | |
readonly PROG_NAME=$(basename "$0") | |
usage() | |
{ | |
echo "Usage: $PROG_NAME <url-list>" | |
exit 1 |
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
#!/bin/bash | |
readonly ARGC=$# | |
readonly ARGV=( "$@" ) | |
readonly PROG_NAME=$(basename "$0") | |
usage() | |
{ | |
echo "Usage: $PROG_NAME <ip-list>" |
NewerOlder