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 struct | |
import socket | |
import os | |
import sys | |
class NetworkHandler(): | |
def __init__(self, sock): | |
self.sock = sock | |
def myreceive(self): |
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
class IllegalMoveError(ValueError): | |
pass | |
class TicTacToe: | |
def __init__(self): | |
self.grid = [0 for i in range(9)] | |
self.turn = "x" | |
def run(self): | |
while not self.isOver(): |
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
# Preview: https://raw.githubusercontent.com/FedericoPonzi/LegoLab/master/media/hsv-colour.png | |
import cv2 | |
import sys | |
import numpy as np | |
def nothing(x): | |
pass | |
useCamera=False |
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 <stdio.h> | |
int num_lines = 0, num_chars = 0; | |
%} | |
%% | |
\n ++num_lines; ++num_chars; | |
. ++num_chars; | |
%% | |
main() { |
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
/* | |
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved. | |
* | |
* NVIDIA Corporation and its licensors retain all intellectual property and | |
* proprietary rights in and to this software and related documentation. | |
* Any use, reproduction, disclosure, or distribution of this software | |
* and related documentation without an express license agreement from | |
* NVIDIA Corporation is strictly prohibited. | |
* | |
* Please refer to the applicable NVIDIA end user license agreement (EULA) |
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 me.fponzi; | |
import javax.activation.DataHandler; | |
import javax.activation.DataSource; | |
import javax.activation.FileDataSource; | |
import javax.mail.*; | |
import javax.mail.internet.InternetAddress; | |
import javax.mail.internet.MimeBodyPart; | |
import javax.mail.internet.MimeMessage; | |
import javax.mail.internet.MimeMultipart; |
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.StringTokenizer; | |
import java.util.TreeMap; | |
class FrequenzeDiParoleInUnaStringa | |
{ | |
private String stringa; //La stringa da analizzare | |
private TreeMap<String, Integer> dictionary = new TreeMap<String, Integer>(); //Inizializzo il TreeMap | |
FrequenzeDiParoleInUnaStringa(String stringa) | |
{ |
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
CUDA 9.1: 387.xx | |
CUDA 9.0: 384.xx | |
CUDA 8.0 375.xx (GA2) | |
CUDA 8.0: 367.4x | |
CUDA 7.5: 352.xx | |
CUDA 7.0: 346.xx | |
CUDA 6.5: 340.xx | |
CUDA 6.0: 331.xx | |
CUDA 5.5: 319.xx | |
CUDA 5.0: 304.xx |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#ifdef USE_MALLOC_WRAPPERS | |
/* Don't wrap ourselves */ | |
# undef USE_MALLOC_WRAPPERS | |
#endif | |
#include "malloc_wrap.h" |