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
#Much code taken from https://github.com/roxas75/rxTools/blob/012a9c2fe99f2d421e68ae91f738b4028995ad67/tools/scripts/ncchinfo_gen.py | |
#Uses some bits and pieces from https://github.com/Mtgxyz2/3ds-FUSE | |
#Comments are for people that care about being able to read their code tommorrow :P | |
from __future__ import print_function | |
import os, sys, glob, struct | |
from Crypto.Cipher import AES | |
from Crypto.Util import Counter | |
from hashlib import sha256 | |
from ctypes import * | |
from binascii import hexlify, unhexlify |
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
(latest) C:\WINDOWS\system32>conda install -c conda-forge opencv | |
Collecting package metadata (current_repodata.json): done | |
Solving environment: done | |
## Package Plan ## | |
environment location: C:\Program Files\Anaconda3\envs\latest | |
added / updated specs: | |
- opencv |
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 <iostream> | |
const int MAX = 12; | |
void swap(int arr[], int i, int j){ | |
int temp = arr[i]; | |
arr[i] = arr[j]; | |
arr[j] = temp; | |
} |
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> | |
#include <math.h> | |
int find(int data[], int length, int key) { | |
int location = -1; // initialize to not found | |
int begin = 0; // beginning of the index | |
int end = length - 1; // end of the index | |
int mid = 0; | |
int count = 0; |
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 <iostream> | |
const int SIZE = 8; | |
void display(int arr[]){ | |
std::cout << std::endl; | |
for (int i = 0; i < SIZE; ++i) | |
std::cout << arr[i] << " "; | |
} |
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 <iostream> | |
const int SIZE = 8; | |
void display(int arr[]){ | |
std::cout << std::endl; | |
for (int i = 0; i < SIZE; ++i) | |
std::cout << arr[i] << " "; | |
} |
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.*; | |
public class Main | |
{ | |
static String infix2postfix(String input) | |
{ |
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
$ python mnist_mlp.py | |
60000 train samples | |
10000 test samples | |
2019-10-30 15:59:27.542886: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 | |
2019-10-30 15:59:27.870733: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties: | |
name: Tesla K80 major: 3 minor: 7 memoryClockRate(GHz): 0.8235 | |
pciBusID: 0000:06:00.0 | |
2019-10-30 15:59:27.873027: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 1 with properties: | |
name: Tesla K80 major: 3 minor: 7 memoryClockRate(GHz): 0.8235 | |
pciBusID: 0000:07:00.0 |
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 <iostream> | |
#include <limits> | |
using namespace std; | |
void display(int arr[], int length, int pass); | |
void selectionSort(int arr[], int length){ | |
int i, j, min, minat; | |
for(i = 0; i < (length-1); i++) |
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 <iostream> | |
#include <limits> | |
using namespace std; | |
void display(int arr[], int length, int pass); | |
void selectionSort(int arr[], int length){ | |
int i, j, min, minat; | |
for(i = 0; i < (length-1); i++) |