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 main | |
import ( | |
"log" | |
"strings" | |
) | |
func main() { | |
log.Println(checkCard("d2")) | |
} |
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 S { override fun toString(): String {return "s"} } | |
class Q { override fun toString(): String { return "q"} } | |
class U { override fun toString(): String {return "u"} } | |
class A{ override fun toString(): String { return "a"} } | |
class D{ override fun toString(): String { return "d"} } | |
class s{ override fun toString(): String { return "s"} } | |
fun squads() { | |
val S = S().toString() |
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 mongo | |
data class Address(var city: String, var country: String) | |
data class Review(var userName: String, var rating: Double) { | |
init { | |
if ((rating < 0) || rating >10) { | |
throw RatingException("Ratings need to be between 0 and 10") | |
} | |
} |
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
$(document).ready(function () { | |
function exportTableToCSV($table, filename) { | |
var $rows = $table.find('tr:has(td),tr:has(th)'), | |
tmpColDelim = String.fromCharCode(11), | |
tmpRowDelim = String.fromCharCode(0), | |
colDelim = '","', | |
rowDelim = '"\r\n"', | |
csv = '"' + $rows.map(function (i, row) { | |
var $row = $(row), $cols = $row.find('td,th'); | |
return $cols.map(function (j, col) { |
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 main | |
import ( | |
"github.com/gorilla/mux" | |
"log" | |
"net/http" | |
"encoding/json" | |
) | |
// Our person struct, (a collection of data representing a person |
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
All commands start with a > | |
>help - the help command | |
>wouldyou, haveyou, willyou (random responses) | |
Updated from time to time.. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | |
<title>HELP</title> | |
</head> | |
<body id="lol"> | |
<center><h1 id="haha" style="font-family: 'Roboto', sans-serif;"></h1></center><br> | |
<script type="text/javascript"> | |
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 main | |
import ( | |
"io/ioutil" | |
"log" | |
"os" | |
"math/rand" | |
"time" | |
) |
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
universal studentroom this extends this impliments that, there { | |
this this = new this<this>(this); | |
void <THIS> this(THIS this) { | |
while(this) { | |
return new this(this); | |
} | |
if (this.this(this)) applyNewThis(this); | |
} |
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 me.noy.javabasics.advanced; | |
import java.util.Scanner; | |
/** | |
* @author Noy Hillel, give credit Nick. | |
* Kidding, love you. | |
*/ | |
public final class AdvancedCalculator { |
NewerOlder