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
'use strict'; | |
var fs = require('fs'); | |
/** | |
* Dijkstra algorithm | |
* | |
* @param g {Array} | |
* @param start {Number} | |
*/ |
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
/** | |
* Возводит матрицу a в степень n в кольце r | |
*/ | |
function power(a, n, r){ | |
'use strict'; | |
/** | |
* Возвращает нулевую квадратную матрицу рамера s | |
*/ | |
// var makeNull = (s) => new Array(s).fill(new Array(s).fill(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
fn main(){ | |
let mut pi = 0f64; | |
let mut n = 0u64; | |
let mut a = 1f64; | |
let mut b = 1f64; | |
let mut k = 0f64; | |
loop { | |
a = inv(-1f64, n); | |
b = inv(4f64, n); |
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
use std::io::File; | |
fn main(){ | |
let path = Path::new("e.txt"); | |
let display = path.display(); | |
let mut e = 0f64; | |
let mut k = 1f64; | |
let mut count = 0f64; | |
let a = 1.0_f64; |
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
#!/bin/bash | |
IPADDR=`ifconfig -a | grep -A1 ed0 | grep inet | awk '{ print $2 }'` | |
LASTIP=`nslookup canth.dtdns.net ns1.darktech.org | grep -A1 canth | | |
grep Address | awk '{ | |
print $2 }'` | |
echo -n "`date` - " | |
if [ "$IPADDR" != "$LASTIP" ]; then |
NewerOlder