I hereby claim:
- I am qaisjp on github.
- I am qaisjp (https://keybase.io/qaisjp) on keybase.
- I have a public key whose fingerprint is 5D90 87F0 7DC7 E6CB 1CE0 814A 39A7 A845 3517 B0FD
To claim this, I am signing this object:
Module Module1 | |
Sub Main() | |
Dim maxNumber As Integer = 1000 | |
Dim value As Integer = 0 | |
For i As Integer = 1 To maxNumber - 1 | |
If (i Mod 3 = 0) Or (i Mod 5 = 0) Then | |
value += i | |
End If | |
Next |
:gsub("&#%d%d%d%d;", decode) | |
function decode(str) | |
local num = tonumber(str:sub(3,6)) | |
local first = math.floor(num/4096) | |
num = num - 4096 * first | |
return string.char(first+224, math.floor(num/64)+128, num%64+128) | |
end |
Public Class Employee | |
' These private variables cannot be accessed outside the class | |
' This means that in Module1.vb, we can't do emp.EmployeeID | |
' The only time we really need to do this is when validating data | |
' See the comments for each function to see how they *could* be validated | |
Private EmployeeID As String | |
Private DateOfBirth As String | |
Private JobTitle As String | |
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' |
-- this can be a json file | |
return { | |
engine = "love-0.8.0", | |
image = "github://img/screenie.png", -- also allow "http://" | |
source = "github://src" -- if src is a folder, downlaod as zip via Ghub api, if it is a .love file then downlaod that instead | |
-- other meta | |
} | |
$valid_files = Array( | |
"trAInsported.love" => True; | |
); | |
if (!empty($_GET["file"]) { | |
$request = $_GET["file"]; | |
if $valid_files[$request] { | |
$path = "../downloads/" . str_replace('/', '_', $request); | |
header("Content-type: application/octet-stream"); | |
header("Content-disposition: attachment;filename=" . $request); |
swagger: '2.0' | |
info: | |
title: Dubtrack API | |
description: | | |
Unofficial documentation. All responses are wrapped in `{ code: 200, data: <response>, message: "OK" }`. | |
version: "1.0.0" | |
# the domain of the service | |
host: api.dubtrack.com | |
# array of all schemes that your API supports |
lookUp :: Char -> [(Char, Char)] -> Char | |
lookUp needle xs = if (null selected) then needle else snd $ selected !! 0 | |
where | |
selected = [x | x <- xs, fst x == needle] |
I hereby claim:
To claim this, I am signing this object:
I don't know if we've been taught the general method for De Morgan's, but I'll say it anyway:
When I say direct children only, I mean that if you have (A or (B and C))
, you should end up with not (not A and not (B and C))
by De Morgan's.
You should NOT end up with not (not A and (not B or not C))
.
public class NoughtsAndCrosses { | |
boolean drawn; | |
int winner; | |
public NoughtsAndCrosses(int[][] board) { | |
// First check all columns | |
for (int x = 0; x < 3; x++) { | |
Integer winner = board[x][0]; | |