given 'n' polynomials to mupliply,
3+x 2x^2+2
take the first polynomials coefficients,
3+x --> 3, 1
add enough slack coefficients n^2,
3, 1 --> 3, 1, 0, 0
indexed 0 1 2 3
| echo '--> Run me with sudo privileges' | |
| echo '--> If an error about a signature occurs add the key holder in the error' | |
| apt-get update | |
| apt-get install curl | |
| \curl -L https://get.rvm.io | bash -s stable --rails | |
| source ~/.rvm/scripts/rvm | |
| rvm install ruby-2.1.4 | |
| rvm use ruby-2.1.4 | |
| rails new sample |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int populate( char word_array[40][15] ) | |
| { | |
| FILE *words; | |
| int end; | |
| /* open the file */ |
| #include <iostream> | |
| #include <unistd.h> | |
| #include <termios.h> | |
| #include <cstdio> | |
| #include <vector> | |
| #include <string> | |
| using namespace std; | |
| #include <iostream> | |
| #include <queue> | |
| #include <time.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| using namespace std; | |
| int main(int argc, char const *argv[]) |
| /* | |
| This is computationally terrible and resource abusive... | |
| I just did this to finish some homework for me. | |
| */ | |
| #include <iostream> | |
| #include "dfaMinimizer.hpp" | |
| #include <vector> | |
| #include <map> |
given 'n' polynomials to mupliply,
3+x 2x^2+2
take the first polynomials coefficients,
3+x --> 3, 1
add enough slack coefficients n^2,
3, 1 --> 3, 1, 0, 0
indexed 0 1 2 3
| #def N | |
| #def F | |
| #def I | |
| #def FP | |
| #def TMP | |
| mov N 20 | |
| ;non recursive fib | |
| !fib | |
| cmp N 1 |
| /* | |
| from: https://github.com/matutter/AirRocks-FlightController | |
| JCommand - | |
| SHOULD be the main JSON parsing type | |
| WILL be exception safe | |
| boost causes hangs and weird assemlber errors, v8 embedding is worse... | |
| i NEED c++11 support... next time its going to be an Intel Edison | |
| */ | |
| #ifndef JSON_COMMAND_T |
| #include <chrono> | |
| #include <iostream> | |
| #include <unistd.h> | |
| class Timer { | |
| private: | |
| static inline unsigned long long CPUCycleCounter(void) { | |
| unsigned long long int x; | |
| __asm__ volatile (".byte 0x0F, 0x31" : "=A" (x)); |
| /* | |
| * To change this license header, choose License Headers in Project Properties. | |
| * To change this template file, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package javaapplication23; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; |