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
Logger.configure(level: :warning) | |
Mix.install([ | |
{:req, "~> 0.3.0"}, | |
{:earmark, "~> 1.4"} | |
]) | |
defmodule DocLinkChecker do | |
def check_links do | |
project_root = File.cwd!() |
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.querySelectorAll('.file.js-file[data-file-type=".svg"][data-tagsearch-path*="heroicons"] .js-reviewed-checkbox:not([checked])').forEach((checkbox) => checkbox.click()) |
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
var preservedBranches = [ | |
'master', 'develop' | |
]; | |
// Remove branches on the current page | |
var branches = document.getElementsByClassName('branch-summary'); | |
for (var i = 0; i < branches.length; i++) { | |
var branchName = branches[i].dataset.branchName; |
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
var KrizaljkaCtrl = angular.element('.krizaljka').scope(); | |
KrizaljkaCtrl.switchAutoProvjera(); | |
for (i = 0; i < KrizaljkaCtrl.krizaljka.odgovori.length; i++) { | |
var hash = KrizaljkaCtrl.krizaljka.odgovori[i]; | |
if (hash.tip == 'odgovor' || hash.tip == 'istaknutiodgovor') { | |
hash.inputValue = hash.val; | |
$('.kockica[x="' + hash.coords.x + '"][y="' + hash.coords.y + '"] input') |
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
var interval = 500.5, | |
container = $('#container'), | |
score = $('#score'), | |
lastScore = 0, | |
addend = -1, | |
clickCount = 0, | |
clickLimit = 40, | |
playButton = $('#play'), | |
restartButton = $('.restart'); |
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
<?php | |
function determine_playerslot($player_slot) | |
{ | |
$binary = sprintf('%08b', $player_slot); | |
$team = substr($binary, 0, 1); | |
$slot = bindec(substr($binary, 1)); | |
return $team * 5 + $slot; | |
} |
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
<?php | |
function convert_steamid_64bit_to_32bit($id) | |
{ | |
$result = substr($id, 3) - 61197960265728; | |
return (string) $result; | |
} | |
function convert_steamid_32bit_to_64bit($id) | |
{ |
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
<form action="/forum/ucp.php?mode=login" method="post"> | |
<input type="text" name="username" size="18" placeholder="Username"> | |
<input type="password" name="password" size="18" placeholder="Password"> | |
<input type="checkbox" name="remember" value="yes" checked=""> | |
<input type="hidden" name="autologin" value="on"> | |
<input type="hidden" name="redirect" value="/"> | |
<button value="Log in" name="login" type="submit">Log in</button> | |
<a href="/forum/ucp.php?mode=sendpassword">Forgotten password?</a> | |
<a href="/forum/ucp.php?mode=register">Register</a> | |
</form> |