Jump to content

The under 100 line challenge!

fletch to 99
for x in range(100000):        print x

This program helps you count.

answer=0for x in range(10):        answer+=xanswer-=3print answer

And this program gives you the answer to life, the universe, and everything.

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

My coffeescript function that can check if the user entered a valid Austrian social security number.

I tried to make it as small as possible, so don't expect awesome code quality.

soz = (soznum) ->  num = soznum #this saves 1 line!  if num.length != 10 or isNaN(parseFloat num) or !isFinite num then return "Keine gueltige soz. versicherungsnummer!"  while true    sum = 0    sum += ([3,7,9,0,5,8,4,2,1,6][i]*parseInt(num[i])) for i in [0..num.length-1] when i isnt 3    if sum%11 > 10 then return "Keine gueltige soz. versicherungsnummer!"    else if sum%11 == 10 then num = (parseInt(num[0..2])+1)+num.substr(3,num.length) else if num != soznum then return num else return "Gueltige Nummer"
Link to comment
Share on other sites

Link to post
Share on other sites

Written quickly and probably isn't the most reliable but its exactly 100 lines and works on 90% of the TV shows i have on my computer.

 

Will organize your TV/anime video files to a Show\Season x\ShowName SxEx - Episode name.extension

Only works on window, didn't add system dependant file seperators.

Usage:

   -compile with javac (need SDK and bin on system/user path)

   -execute; java VideoOrganizer [Full path to video directory] or place class in target directory and execute without params

 

Works on 90% of files tested but the wide range of potential formats cannot be easily covered with regex 

import java.io.File;import java.util.regex.Matcher;import java.util.regex.Pattern; /** * Created by Deprecated on 2014/07/20. */public class VideoOrganizer {    private static final String INVALID_CHAR = "-._";    private static final String REGEX_CHARS = ".\\^$[](){}-|";    private static final String VIDEO_PATTERN_REGEX = "(\\[.*\\])?(.*?)(s\\d+|S\\d+)?(e\\d+|E\\d+|EP\\d+|Ep\\d+|_\\d+_)(.*?)(\\s?\\(.*\\)|\\s?\\[.*\\]|\\s?_|\\..*)*(\\..+)";    private static final Pattern VIDEO_PATTERN = Pattern.compile(VIDEO_PATTERN_REGEX);     public static void main(String... args) {        VideoOrganizer organizer = new VideoOrganizer();        organizer.assertConfig(args);        organizer.organize(new File(args.length == 0 ? "." : args[0]));    }     private void assertConfig(String... args) {        if (args.length > 1 || (args.length == 1 && args[0].equalsIgnoreCase("HELP"))) {            System.out.println("Usage:  java VideoOrganizer [Path to directory to sort]");            System.exit(0);        }    }     private void organize(File target) {        try {            if (target.isDirectory()) {                for (File subTarget : target.listFiles()) {                    organize(subTarget);                }            } else {                modifyFile(target);            }        } catch (NullPointerException e) {            System.out.println("Failed to organize file: " + target.getName());        }    }     private void modifyFile(File target) {        Matcher videoMatcher = VIDEO_PATTERN.matcher(target.getName());        if (videoMatcher.matches()) {            File destination = new File(target.getParent() + "\\" + createFileName(target.getParent(), videoMatcher));            if (destination.exists()) {                System.out.println("Failed to create file: " + target.getName() + ", file already exists.");            } else {                System.out.println("Transforming file \"" + target.getName() + "\" to \"" + destination.getName() + "\"");            }             target.renameTo(destination);        } else {            System.out.println("Failed to match file: " + target.getName() + " against video pattern.");        }    }     private String createFileName(String directory, Matcher videoMatcher) {        StringBuilder stringBuilder = new StringBuilder();        stringBuilder.append(cleanName(videoMatcher.group(2)));        stringBuilder.append(" ");        if (validString(videoMatcher.group(3))) {            if (!directory.substring(directory.lastIndexOf("\\") + 1).equalsIgnoreCase("Season " + cleanInteger(videoMatcher.group(3)))) {                stringBuilder = new StringBuilder("Season " + cleanInteger(videoMatcher.group(3)) + "\\" + stringBuilder.toString());                new File(directory + "\\" + "Season " + cleanInteger(videoMatcher.group(3))).mkdirs();            }            stringBuilder.append(" S");            stringBuilder.append(cleanInteger(videoMatcher.group(3)));        }        stringBuilder.append("E");        stringBuilder.append(cleanInteger(videoMatcher.group(4)));        if (validString(cleanName(videoMatcher.group(5)))) {            stringBuilder.append(" - ");            stringBuilder.append(cleanName(videoMatcher.group(5)));        }        stringBuilder.append(videoMatcher.group(7));        return stringBuilder.toString();    }     private boolean validString(String string) {        return string != null && !string.trim().isEmpty();    }     private String cleanName(String rawString) {        for (char invalidChar : INVALID_CHAR.toCharArray()) {            rawString = rawString.replaceAll(formatForRegex(String.valueOf(invalidChar)), "");        }         return rawString.trim();    }     private String cleanInteger(String rawString) {        return rawString.replaceAll("[^\\d]", "").trim();    }     private String formatForRegex(String literal) {        return REGEX_CHARS.contains(literal) ? "\\" + literal : literal;    }}
Link to comment
Share on other sites

Link to post
Share on other sites

On a trip to Southern California I had made a quick python program (no spoilers yet) in a notepad app on my phone (so extremely painful) and my phone died before I could save :(. So I am trying to re-code it. I will post once I have programmed it.

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...
Pretty basic batch programs to encrypt text files.
 
Encryptor:

@Echo off

setlocal enableDelayedExpansion
cls
 
set /p inputcode6=Code: 
set /p inputcode5=Code: 
set /p inputcode4=Code: 
set /p inputcode3=Code: 
set /p inputcode2=Code: 
set /p inputcode=Code: 
set /p code=<%1
set chars=0123456789abcdefghijklmnopqrstuvwxyz
 
for /L %%N in (10 1 36) do (
 
for /F %%C in ("!chars:~%%N,1!") do (
 
set /a MATH=%%N*%inputcode%/%inputcode2%-%inputcode3%+%inputcode4%/%inputcode5%*%inputcode6%
 
for /F %%F in ("!MATH!") do (
set "code=!code:%%C=-%%F!"
)
 
)
 
)
 
echo !code! > encrypted.txt
pause
 

 

29 Lines
 
 

Decryptor: 

 

@Echo off

 

 
 

 

 

setlocal enableDelayedExpansion
 
set /p inputcode6=Code: 
set /p inputcode5=Code: 
set /p inputcode4=Code: 
set /p inputcode3=Code: 
set /p inputcode2=Code: 
set /p inputcode=Code: 
set /p code=<%1
set chars=0123456789abcdefghijklmnopqrstuvwxyz
 
for /L %%N in (10 1 36) do (
 
for /F %%C in ("!chars:~%%N,1!") do (
 
set /a MATH=%%N*%inputcode%/%inputcode2%-%inputcode3%+%inputcode4%/%inputcode5%*%inputcode6%
 
for /F %%F in ("!MATH!") do (
set "code=!code:%%F=%%C!"
)
)
)
 
 
for /f %%F in ("!code!") do (
echo !code! > decrypted.txt
set "code=!code:-=!"
 
 
)
 
echo !code! > Test.txt
if test.txt=galacticeam run c:\Users\Lucas\Documents\corsair.txt
pause

 

 

35 Lines.
Link to comment
Share on other sites

Link to post
Share on other sites

 

Pretty basic batch programs to encrypt text files.
 
Encryptor:

@Echo off

setlocal enableDelayedExpansion
cls
 
set /p inputcode6=Code: 
set /p inputcode5=Code: 
set /p inputcode4=Code: 
set /p inputcode3=Code: 
set /p inputcode2=Code: 
set /p inputcode=Code: 
set /p code=<%1
set chars=0123456789abcdefghijklmnopqrstuvwxyz
 
for /L %%N in (10 1 36) do (
 
for /F %%C in ("!chars:~%%N,1!") do (
 
set /a MATH=%%N*%inputcode%/%inputcode2%-%inputcode3%+%inputcode4%/%inputcode5%*%inputcode6%
 
for /F %%F in ("!MATH!") do (
set "code=!code:%%C=-%%F!"
)
 
)
 
)
 
echo !code! > encrypted.txt
pause
 

 

29 Lines
 
 

Decryptor: 

 

@Echo off

 

 
 

 

 

setlocal enableDelayedExpansion
 
set /p inputcode6=Code: 
set /p inputcode5=Code: 
set /p inputcode4=Code: 
set /p inputcode3=Code: 
set /p inputcode2=Code: 
set /p inputcode=Code: 
set /p code=<%1
set chars=0123456789abcdefghijklmnopqrstuvwxyz
 
for /L %%N in (10 1 36) do (
 
for /F %%C in ("!chars:~%%N,1!") do (
 
set /a MATH=%%N*%inputcode%/%inputcode2%-%inputcode3%+%inputcode4%/%inputcode5%*%inputcode6%
 
for /F %%F in ("!MATH!") do (
set "code=!code:%%F=%%C!"
)
)
)
 
 
for /f %%F in ("!code!") do (
echo !code! > decrypted.txt
set "code=!code:-=!"
 
 
)
 
echo !code! > Test.txt
if test.txt=galacticeam run c:\Users\Lucas\Documents\corsair.txt
pause

 

 

35 Lines.

 

maybe add some instructions and change the directories of files in the code to be input by the user

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Here is my code from my current project..
It is over 100 lines, just..

 

http://pastebin.com/6K2ngZng

 

Anyone want to guess what it is for.. 

CPU: i7 4770k | GPU: Sapphire 290 Tri-X OC | RAM: Corsair Vengeance LP 2x8GB | MTB: GA-Z87X-UD5HCOOLER: Noctua NH-D14 | PSU: Corsair 760i | CASE: Corsair 550D | DISPLAY:  BenQ XL2420TE


Firestrike scores - Graphics: 10781 Physics: 9448 Combined: 4289


"Nvidia, Fuck you" - Linus Torvald

Link to comment
Share on other sites

Link to post
Share on other sites

Is it used for controlling your casefans?

Yes it one of the few parts for a 4 pin fan controller that i am developing.. It will be open source once it is finished.. :)

CPU: i7 4770k | GPU: Sapphire 290 Tri-X OC | RAM: Corsair Vengeance LP 2x8GB | MTB: GA-Z87X-UD5HCOOLER: Noctua NH-D14 | PSU: Corsair 760i | CASE: Corsair 550D | DISPLAY:  BenQ XL2420TE


Firestrike scores - Graphics: 10781 Physics: 9448 Combined: 4289


"Nvidia, Fuck you" - Linus Torvald

Link to comment
Share on other sites

Link to post
Share on other sites

I feel sorry for the user @Echo, poor guy hasn't been online since January last year, if he does come back..... YOU HAVE 25000 NOTIFICATIONS!!

I am good at computer

Spoiler

Motherboard: Gigabyte G1 sniper 3 | CPU: Intel 3770k @5.1Ghz | RAM: 32Gb G.Skill Ripjaws X @1600Mhz | Graphics card: EVGA 980 Ti SC | HDD: Seagate barracuda 3298534883327.74B + Samsung OEM 5400rpm drive + Seatgate barracude 2TB | PSU: Cougar CMX 1200w | CPU cooler: Custom loop

Link to comment
Share on other sites

Link to post
Share on other sites

this is a calculator i made in c++ a while ago. it will detect if you enter a sting value in a integer place. and you can enter the mathematical operator of choice.  yes i know it sucks. and yes i work on cooler stuff now :D

#include <iostream>using namespace std;class math{    public:    int operators(int x, int y, string m){        if(m == "*"){            return x * y;        }        else if(m == "/"){            return x / y;        }        else if(m == "+"){            return x + y;        }        else if(m == "-"){            return x - y;        }    }};int main(){    int e;    while(true){    string a;    if(e <= 1){        cout << "Enter Y to continue, and N to end the program" << endl;        cin >> a;    }    if( a == "Y" || a == "y"){    }else if(a == "N" || a == "n"){        break;    }    e = 1;    string m;    int x;    int y;    int answer;    cout << "Enter a number " << endl;    while(!(cin >> x)){        cout << "that is a string, enter a number please" << endl;        cin.clear();        cin.ignore ();    }    cout << "Enter a mathimatical operator " << endl;    cin >> m;    cout << "Enter another number " << endl;    while (!(cin >> y)){        cout << "that is a string, enter a number please" << endl;        cin.clear();        cin.ignore ();    }    math math;    answer = math.operators(x, y, m);    cout << answer << endl;    }}

CPU: i7 4770k@4.3Ghz GPU: GTX 780ti Motherboard: ROG maximus vi formula PSU: Evga supernova 1000w Platinum

Case: NZXT Switch 810 Memory: g.skill ripjaws X Cooler: Corsair h100i(getting custom loop when i get money next) Storage: Samsung 840 evo 250gb Keyboard: Corsair K95 Mouse: SteelSeries Rival

Link to comment
Share on other sites

Link to post
Share on other sites

 

this is a calculator i made in c++ a while ago. it will detect if you enter a sting value in a integer place. and you can enter the mathematical operator of choice.  yes i know it sucks. and yes i work on cooler stuff now :D

#include <iostream>using namespace std;class math{    public:    int operators(int x, int y, string m){        if(m == "*"){            return x * y;        }        else if(m == "/"){            return x / y;        }        else if(m == "+"){            return x + y;        }        else if(m == "-"){            return x - y;        }    }};int main(){    int e;    while(true){    string a;    if(e <= 1){        cout << "Enter Y to continue, and N to end the program" << endl;        cin >> a;    }    if( a == "Y" || a == "y"){    }else if(a == "N" || a == "n"){        break;    }    e = 1;    string m;    int x;    int y;    int answer;    cout << "Enter a number " << endl;    while(!(cin >> x)){        cout << "that is a string, enter a number please" << endl;        cin.clear();        cin.ignore ();    }    cout << "Enter a mathimatical operator " << endl;    cin >> m;    cout << "Enter another number " << endl;    while (!(cin >> y)){        cout << "that is a string, enter a number please" << endl;        cin.clear();        cin.ignore ();    }    math math;    answer = math.operators(x, y, m);    cout << answer << endl;    }}

Nice calculator! There are probably some more modifications you could make if you wanted it even smaller.

Checking if the input is a number is done twice.

Link to comment
Share on other sites

Link to post
Share on other sites

Nice calculator! There are probably some more modifications you could make if you wanted it even smaller.

Checking if the input is a number is done twice.

Thank you!! And i will implement that after I finish work on a super secretive project. xD

CPU: i7 4770k@4.3Ghz GPU: GTX 780ti Motherboard: ROG maximus vi formula PSU: Evga supernova 1000w Platinum

Case: NZXT Switch 810 Memory: g.skill ripjaws X Cooler: Corsair h100i(getting custom loop when i get money next) Storage: Samsung 840 evo 250gb Keyboard: Corsair K95 Mouse: SteelSeries Rival

Link to comment
Share on other sites

Link to post
Share on other sites

mass wget from a list in Node.JS

var util = require('util'),exec = require('child_process').exec,child;var prompt = require('prompt');var fs = require('fs'); prompt.start(); prompt.get(['urls', 'output'], function (err, result){console.log('Ok, you want to download from ' + result.urls);console.log('gotta go fast xdddddddddddddddddddddddddddddddddd'); fs.readFile(result.names, function read(err, names){ var formatted = result.urls.toString().split(","); for(i in formatted){ child = exec('wget ' + formatted[i], function (error, stdout, stderr) {console.log('stdout: ' + stdout);console.log('stderr: ' + stderr);if(error !== null) {console.log('exec error: ' + error);}});} })});

i want to die

Link to comment
Share on other sites

Link to post
Share on other sites

simple C# stuff that that stresses your cpu

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Threading; namespace {    class Program    {        static void Main(string[] args)        {            Thread thread1 = new Thread(new ThreadStart(Thread1));            Thread thread2 = new Thread(new ThreadStart(Thread2));            Thread thread3 = new Thread(new ThreadStart(Thread3));            Thread thread4 = new Thread(new ThreadStart(Thread4));            thread1.Start();            thread2.Start();            thread3.Start();            thread4.Start();        }                public static void Thread1()        {            while (true)            {}        }          public static void Thread2()        {            while (true)            {}        }                public static void Thread3()        {            while (true)            {}        }               public static void Thread4()        {            while (true)            {}        }    }}
Link to comment
Share on other sites

Link to post
Share on other sites

 

simple C# stuff that that stresses your cpu

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Threading; namespace {    class Program    {        public static Random _random = new Random();        static void Main(string[] args)        {            Thread thread1 = new Thread(new ThreadStart(Thread1));            Thread thread2 = new Thread(new ThreadStart(Thread2));            Thread thread3 = new Thread(new ThreadStart(Thread3));            Thread thread4 = new Thread(new ThreadStart(Thread4));            thread1.Start();            thread2.Start();            thread3.Start();            thread4.Start();        }                public static void Thread1()        {            while (true)            {}        }          public static void Thread2()        {            while (true)            {}        }                public static void Thread3()        {            while (true)            {}        }               public static void Thread4()        {            while (true)            {}        }    }}

Did you get this from barancules?

Link to comment
Share on other sites

Link to post
Share on other sites

Simple C++ code that creates a web link using a random number generator. Notice where it says <INSERT>, thats where you can decide.

So find a website that allows the modifier in integer form, and specify a limit for the RNG, where it says 9999999. Modify the url accordingly.

Once done, it will add to the clipboard for quick pasting :)

#include "stdafx.h"#include "windows.h"#include <iostream>#include <string>#include <sstream>#include <ctime>using namespace std;// Variablesstring banner = "<INSERT>";string url = "http://www.<INSERT>.com/video";string copied = "link copied to clipboard";string link;int vidId;void clipboard(string link);void main () {	srand(time(0));	cout << banner << endl;	while (true){		vidId = 0 + rand() % (9999999 - 0);		stringstream templink;		templink << url << vidId;		link = templink.str();		cout << link << endl;		clipboard(link);}}void clipboard(string link){	OpenClipboard(0);	EmptyClipboard();	HGLOBAL hg = GlobalAlloc(GMEM_MOVEABLE, link.size() + 1);	if (!hg){CloseClipboard();return;}	memcpy(GlobalLock(hg), link.c_str(), link.size());	GlobalUnlock(hg);	SetClipboardData(CF_TEXT, hg);	CloseClipboard();	GlobalFree(hg);	cout << copied << endl;	cin.get();}

Comb it with a brick

Link to comment
Share on other sites

Link to post
Share on other sites

This thing renames files listed in a file following the format "file[tabstop]newfilename" for each line.
Usage: scriptname.py [filewithpairs]

#!/usr/bin/python# My other renamy scripty thingyimport os,sysf = open(sys.argv[1],'r')pairs = f.read().split("\n")[:-1]def p(a,b): print a,"-->",b; os.rename(a,b)map(lambda i: p(i[0],i[1]),map(lambda x: x.split("\t"), pairs))

or:

#!/usr/bin/pythonimport os,sysf = open(sys.argv[1],'r')pairs = f.read().split("\n")[:-1]map(lambda i: os.rename(i[0],i[1]),map(lambda x: x.split("\t"), pairs))

Without output

Link to comment
Share on other sites

Link to post
Share on other sites

I was bored so I wrote a crude brainf**k interpreter.

 

-- terrible brainf*** in moonscriptptr = nilmem = nilstack  = nildstack = nil ops =    '>': () -> ptr += 1    '<': () -> ptr -= 1    '+': () -> mem[ptr] += 1    '-': () -> mem[ptr] -= 1    '.': () ->        io.write(string.char(mem[ptr]))        return nil --avoid implicit return    ',': (v) ->        mem[ptr] = string.byte(io.read(1))    '[': (pc) ->        if mem[ptr] == 0            return dstack + 1        else            stack[#stack + 1] = pc    ']': (pc) ->        dstack = pc        result = stack[#stack]        stack[#stack] = nil        return result setmetatable(ops, __index:(t,k) -> return () -> ) -- undefined operator is ignored brainfart = (program, timeLimit=5, debug) ->    n   = 1 -- program counter    ptr = 1 -- data counter    stack  = {} -- stack of loops    mem    = {} -- clear memory    dstack = -1 -- end point of current loop    setmetatable(mem, __index:(t,k) -> return 0) -- undefined memory address is 0     worker = coroutine.create () ->        while n <= #program            n = ops[program\sub(n,n)](n) or n + 1            coroutine.yield(true)            if debug                print(n, ptr, program\sub(n,n), mem[ptr])        coroutine.yield(false)     start = os.clock()    worktoDo = true    while os.clock() - start < timeLimit and worktoDo        worktoDo = coroutine.resume(worker)    print "Program halted: took to long" if worktoDo return brainfart

and the Hello World test:
brainfart = require 'bfms' --helloworldbrainfart("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.")--cat (pipe to test)brainfart(",[.,]")
Link to comment
Share on other sites

Link to post
Share on other sites

 

I was bored so I wrote a crude brainf**k interpreter.

<snip>

 

How hard would it be to do something like this in a assembly language? Assuming I've got a decent to good knowledge about the language. Its a bonus project to write one in assembly (1st year computer science and engineering university student). But how hard will it be? And how much time will it take me, I'm trying to figure out if its even worth trying for me :)

Build log "Whiplash" : http://linustechtips.com/main/topic/158477-the-hero/

Whiplash: 4790k@4,4Ghz|Maximus VII Hero|4x4Gb Red/Black HyperX fury 1866Mhz|R9 290 Tri-X|Modded 450D|Sleeved cables on a M12II evo 850W|M500 480Gb| BenQ XL2411T@144Hz

Laptop: 4700MQ|16Gb@1600Mhz|Quadro 1100M|1080P|128Gb SSD|500Gb 7200RPM hdd

Link to comment
Share on other sites

Link to post
Share on other sites

#include <iostream>#include <string>#include <ctime>using namespace std;void game(){	string usersAnswer, choice, winner;	int cpuChoice;	cout << "Rock, paper or scissors?" <<endl;	cin >> usersAnswer;	while (usersAnswer != "rock" &&  usersAnswer != "Rock" && usersAnswer != "paper" && usersAnswer != "Paper"&& usersAnswer != "scissors" && usersAnswer != "Scissors")	{		cout<<endl;		cout << "You must enter either rock, paper or scissors!" <<endl;		cout << "Please enter a valid input" <<endl;		cin >> usersAnswer;	}	cout<<endl;	long seed=time(NULL);	srand(seed);	cpuChoice = (rand()%3+1);	switch (cpuChoice)	{	case 1:		choice="rock";		if (usersAnswer == "paper")		{			cout << "You win! the cpu had " << choice <<endl;		}		else if (usersAnswer =="rock")		{			cout << "Nobody wins! the cpu had " << choice <<endl;		}		else		{			cout << "You lose! the cpu had " << choice <<endl;		}		break;	case 2:		choice="paper";		if (usersAnswer == "scissors")		{			cout << "You win! the cpu had " << choice <<endl;		}		else if (usersAnswer =="paper")		{			cout << "Nobody wins! the cpu had " << choice <<endl;		}		else		{			cout << "You lose! the cpu had " << choice <<endl;		}		break;	case 3:		choice="scissors";		if (usersAnswer == "rock")		{			cout << "You win! the cpu had " << choice <<endl;		}		else if (usersAnswer =="scissors")		{			cout << "Nobody wins! the cpu had " << choice <<endl;		}		else		{			cout << "You lose! the cpu had " << choice <<endl;		}		break;	}}int main(){	game();	cout<<endl;	return 0;}

Rock, paper scissors game I made last night before bed :P

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

I made a little something to convert decibels to watts/m2 for Algebra last year. Not very impressive but it works.

http://jadar.net/2014/04/08/decibel-watts-converter/

 

I also made a little set difference so that you can find the degree of a polynomial from a set of data. I'm still learning Python, so it's not the cleanest..

 

https://gist.github.com/jadar/b154e08487ca00b2da28

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×