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
void gaussElim(int n, int m, double** A,double* x) { | |
int k, i, j,s=0; | |
//double x; | |
for (k = 0; k <n-1; k++) { | |
for (i = k + 1; i < n; i++) { | |
for (j = k+1; j < n; j++) { |
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
2.000000 -1.000000 0.000000 0.000000 0.000000 1.000000 | |
0.000000 1.500000 -1.000000 0.000000 0.000000 3.000000 | |
0.000000 0.000000 1.333333 -1.000000 0.000000 7.000000 | |
0.000000 0.000000 0.000000 1.250000 -1.000000 11.500000 | |
0.000000 0.000000 0.000000 0.000000 1.200000 11.200000 |
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
2.000000 -1.000000 0.000000 0.000000 0.000000 1.000000 | |
-1.000000 1.500000 -1.000000 0.000000 0.000000 3.000000 | |
0.000000 -1.000000 1.333333 -1.000000 0.000000 7.000000 | |
0.000000 0.000000 -1.000000 1.250000 -1.000000 11.500000 | |
0.000000 0.000000 0.000000 -1.000000 1.200000 11.200000 |
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
U = | |
2.0000 -1.0000 0 0 0 | |
0 1.5000 -1.0000 0 0 | |
0 0 1.3333 -1.0000 0 | |
0 0 0 1.2500 -1.0000 | |
0 0 0 0 1.2000 |
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 de.devsurf.html.tail; | |
import java.io.IOException; | |
import java.util.Date; | |
import java.util.Set; | |
import java.util.concurrent.CopyOnWriteArraySet; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.ScheduledExecutorService; | |
import java.util.concurrent.TimeUnit; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
module Hello | |
val factorial: x:int{x>=0} -> Tot int (*factorial is a totalfunction over non negative ints*) | |
val length: list 'a -> Tot nat | |
let rec length l = match l with | |
| [] -> 0 | |
| _ :: tl -> 1 + length tl |
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
#!/bin/bash | |
# Vadim Zaliva [email protected] | |
# based on https://gist.github.com/hadess/6847281 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi |
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
import logging | |
import logging.handlers | |
smtp_handler = logging.handlers.SMTPHandler(mailhost=("smtp.example.com", 25), | |
fromaddr="[email protected]", | |
toaddrs="[email protected]", | |
subject=u"AppName error!") | |
logger = logging.getLogger() |
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
import logging | |
import logging.handlers | |
class TlsSMTPHandler(logging.handlers.SMTPHandler): | |
def emit(self, record): | |
""" | |
Emit a record. | |
Format the record and send it to the specified addressees. | |
""" |
OlderNewer