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
@function gcd($a, $b) { | |
@if $b == 0 { | |
@return $a; | |
} | |
@return gcd($b, $a%$b); | |
} | |
@for $i from 1 through 11 { | |
@for $j from $i+1 through 12 { |
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 java.awt.Dimension; | |
public class Temp { | |
public static void main(String[] args) { | |
VIgui gui = new VIgui(); | |
gui.pack(); | |
gui.setSize(new Dimension(1024, 768)); | |
gui.setVisible(true); | |
} | |
} |
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
def huber_loss(y_true, y_pred, clip_delta=1.0): | |
error = y_true - y_pred | |
cond = tf.keras.backend.abs(error) < clip_delta | |
squared_loss = 0.5 * tf.keras.backend.square(error) | |
linear_loss = clip_delta * (tf.keras.backend.abs(error) - 0.5 * clip_delta) | |
loss = tf.where(cond, squared_loss, linear_loss) | |
return tf.keras.backend.mean(loss) |
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
#include <array> | |
using std::array; | |
#include <iostream> | |
using std::cout; | |
using std::endl; | |
unsigned factorial(unsigned n) | |
{ | |
return n <= 1 ? 1 : n * factorial(n - 1); | |
} |
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
#include <array> | |
using std::array; | |
#include <bitset> | |
using std::bitset; | |
#include <iostream> | |
using std::cout; | |
using std::endl; | |
unsigned factorial(unsigned n) | |
{ |
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
#include <cstddef> | |
using std::size_t; | |
#include <array> | |
using std::array; | |
#include <bitset> | |
using std::bitset; | |
#include <iostream> | |
using std::cout; | |
using std::endl; |
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
class Rectangle { | |
constructor(gl, color, width, height) { | |
this.gl = gl; | |
this.color = color; | |
this.width = width; | |
this.height = height; | |
this.rotation = gl.mat2d.create(); | |
} |
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
class Rectangle { | |
constructor(gl, color, width, height) { | |
this.gl = gl; | |
this.color = color; | |
this.width = width; | |
this.height = height; | |
// Rotation, updated before each render. | |
this.rotation = gl.mat2d.create(); |
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
class Rectangle { | |
constructor(gl, color, width, height) { | |
this.gl = gl; | |
this.color = color; | |
this.width = width; | |
this.height = height; | |
// Rotation, updated before each render. | |
this.rotation = gl.mat2d.create(); |
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
class Rectangle { | |
constructor(gl, color, width, height) { | |
this.gl = gl; | |
this.color = color; | |
this.width = width; | |
this.height = height; | |
// Rotation, updated before each render. | |
this.rotation = gl.mat2d.create(); |
OlderNewer