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
/************************************************************************* | |
* Compilation: javac Polynomial.java | |
* Execution: java Polynomial | |
* | |
* Polynomials with integer coefficients. | |
* | |
* % java Polynomial | |
* zero(x) = 0 | |
* p(x) = 4x^3 + 3x^2 + 2x + 1 | |
* q(x) = 3x^2 + 5 |
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
1. Check Python3 root | |
>>> import sys | |
>>> import os | |
>>> sys.executable | |
'/usr/local/bin/python3' | |
OR | |
$ which python3 | |
/usr/local/bin/python3 |
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
#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 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
[root@cobalt tools]# yum install eog | |
Could not find platform independent libraries <prefix> | |
Could not find platform dependent libraries <exec_prefix> | |
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] | |
ImportError: No module named site | |
[root@cobalt tools]# echo $LD_LIBRARY_PATH | |
:/usr/local/lib:/usr/local/lib:/root/anaconda/lib/ | |
#make LD_LIBRARY_PATH blank |
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
/***************************************************************************/ | |
/* | |
The MIT License (MIT) | |
Copyright (c) 2015 Melvin Cabatuan | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
This works: (with few issues): | |
http://www.technobay.net/how-to-in-place-upgrade-centos-6-6-6-5-to-centos-7-via-httpftpnfs/ | |
# wget http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-contents-0.5.14-1.centos.noarch.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-ui-1.0.2-36.0.1.el6.centos.x86_64.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm | |
# yum localinstall preupg* | |
# yum localinstall redhat* | |
# gedit /etc/yum.repos.d/CentOS7upgrade.repo | |
[upg] | |
name=CentOS-$releasever - Upgrade Tool |
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
# yum install redhat-upgrade-tool preupgrade-assistant-contents | |
Loaded plugins: fastestmirror, refresh-packagekit, security | |
Loading mirror speeds from cached hostfile | |
* base: centos-hcm.viettelidc.com.vn | |
* extras: centos-hcm.viettelidc.com.vn | |
* updates: centos-hcm.viettelidc.com.vn | |
upg | 1.9 kB 00:00 | |
upg/primary_db | 14 kB 00:00 | |
Setting up Install Process | |
Package 1:redhat-upgrade-tool-0.7.22-3.el6.centos.noarch already installed and latest version |
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
Abort: outstanding uncommitted changes | |
$ hg update --clean -r tip | |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
$ hg merge | |
0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
(branch merge, don't forget to commit) | |
$ hg commit -m "cleaned and merged" |
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
C:\Users\ECE\workspace>java -jar bfg.jar --strip-blobs-bigger-than 10M SimpleFaceRecognitionDemo | |
Using repo : C:\Users\ECE\workspace\SimpleFaceRecognitionDemo\.git | |
Scanning packfile for large blobs: 1572 | |
Scanning packfile for large blobs completed in 21 ms. | |
Found 1 blob ids for large blobs - biggest=14549496 smallest=14549496 | |
Total size (unpacked)=14549496 | |
Found 1548 objects to protect | |
Found 4 commit-pointing refs : HEAD, refs/heads/master, refs/remotes/origin/HEAD, refs/remotes/origin/master |
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
package ph.edu.dlsu.lbycpei; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
// METHOD 1: Hardcoded ASCII Art |
NewerOlder