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
span{ | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
text-shadow: 0 0 4px #FFFFFF; | |
font-size: 30px; | |
font-weight:bold; | |
font-family: Helvetica, Arial, sans-serif; | |
} | |
#l1{z-index: 18;} |
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
public class AngleSpeed extends Vector { | |
protected float xSpeed; | |
protected float ySpeed; | |
public AngleSpeed(AngleSpeed old) { | |
this(old.distance, old.xSpeed, old.ySpeed, old.angle.getAngle()); | |
} | |
public AngleSpeed(float speed, float xSpeed, float ySpeed, float angle) { | |
super(angle, speed); |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="13"> | |
<profile kind="CodeFormatterProfile" name="Jarod" version="13"> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/> | |
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> |
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
void main() { | |
var now = new DateTime.now(); | |
var later = now.add(const Duration(seconds: 5)); | |
print("now > later == ${now > later}"); | |
print("now >= later == ${now >= later}"); | |
print("now < later == ${now < later}"); | |
print("now <= later == ${now <= later}"); | |
} | |
extension BetterDateTime on DateTime { |
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
@ECHO off | |
SETLOCAL | |
SET curdir=%~dp0 | |
SET fileCalled=%~n0 | |
SET "_prog=node" | |
SET PATHEXT=%PATHEXT:;.JS;=;% | |
"%_prog%" "%curdir%\js\%fileCalled%.js" %* |
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
if(!String.prototype.matchAll) { | |
String.prototype.matchAll = function (rx) { | |
if (typeof rx === "string") rx = new RegExp(rx, "g"); // coerce a string to be a global regex | |
rx = new RegExp(rx); // Clone the regex so we don't update the last index on the regex they pass us | |
let cap = []; // the single capture | |
let all = []; // all the captures (return this) | |
while ((cap = rx.exec(this)) !== null) all.push(cap); // execute and add | |
return all; // profit! | |
}; | |
} |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="13"> | |
<profile kind="CodeFormatterProfile" name="Jarod" version="13"> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> | |
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/> | |
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/> |
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
# Update Aliases | |
getAliases () { | |
cp ~/.bash_aliases ~/bkp.bash_aliases | |
curl -o ~/.bash_aliases https://gist.githubusercontent.com/TheBrenny/5982fc550b8faf6b190b579c965d77fb/raw/my.bash_aliases | |
. ~/.bash_aliases | |
} | |
# Console adjustments | |
alias cl='clear' | |
alias cls='clear;ls' |
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
// x and y are arrays of -10 to +10 at steps of 0.2, | |
// f is the function of the answer line, | |
// targets is a 2d array of all f(x,y) | |
let x = genNumbers(-10, 10, 0.2); | |
let y = genNumbers(10, -10, -0.2); // 10 is min and -10 is max so it looks more normal in the array | |
let f = (x1, x2) => (3 * x1 + 6 * x2 - 24); | |
// let targets = y.map(y => y.map(x => f(x, y))); | |
// The random weights and bias, as well as the generated nn-node |
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
<html> | |
<head> | |
<style> | |
* { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
padding: 2em; |
OlderNewer