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
-- Drawing the map as isometric tiles | |
self.tilesHovered = {} -- Reset the tilesHovered table every frame | |
for i = 1, #self.map do -- Loop trough rows | |
for j = 1, #self.map[i] do -- Loop through cols in the rows | |
if self.map[i][j] ~= 0 then -- If there is a tile to draw | |
local x = | |
self.x + -- Starting point | |
(j * ((self.tileWidth / 2) * self.scale)) - -- The width on rows | |
(i * ((self.tileWidth / 2) * self.scale)) -- The width on cols |
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
-- [[ Cheatsheet for LUA from http://www.newthinktank.com/2015/06/learn-lua-one-video/]] | |
-- Prints to the screen (Can end with semicolon) | |
print("Hello World") | |
--[[ | |
Multiline comment | |
]] | |
-- Variable names can't start with a number, but can contain letters, numbers |
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
mutation { | |
create_psych_consultation( | |
input: { | |
is_draft: false | |
patient_id: 233623 | |
date: "2018-07-17" | |
recommended_diagnoses: [{diagnosis_id: 11860}] | |
recommended_medications: [{ | |
medication_id: 11861 | |
date: "2018-07-17" |
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
{"lastUpload":"2018-06-23T16:09:03.264Z","extensionVersion":"v2.9.2"} |
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
{"version":1,"resource":"file:///Users/aleksandar.trpeski/Documents/tax-service/tests/app/transactions/adapters/avalara/create_transaction/test_fulfillment_discount.py","entries":[{"id":"dyTS.py","source":"searchReplace.source","timestamp":1654103958553},{"id":"ViJr.py","source":"searchReplace.source","timestamp":1654104020802},{"id":"aRWL.py","timestamp":1656335032686},{"id":"MvKE.py","timestamp":1656335239330}]} |
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
module Elmo8.Console exposing (Command, putPixel, print, boot, Config, sprite) | |
{-| The ELMO-8 Fantasy Console | |
This is a PICO-8 inspired fantasy "console". This isn't really a console emulator but a simple graphics and game library for creating 8-bit retro games. | |
# Initialization | |
To start up the console you need to do a little bit of configuration (the pattern matches Elm's normal model/view/update): |
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
module Main exposing (..) | |
import Html exposing (Html, text) | |
type Msg msg | |
= Internal | |
| Wrapped msg | |
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
<%= form_for @changeset, @action, [multipart: true], fn f -> %> | |
<%= if @changeset.action do %> | |
<div class="alert alert-danger"> | |
<p>Oops, something went wrong! Please check the errors below.</p> | |
</div> | |
<% end %> | |
<div class="form-group"> | |
<%= label f, :title, class: "control-label" %> | |
<%= text_input f, :title, class: "form-control" %> |
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
func delay(delay: Double, closure: ()->()) { | |
dispatch_after( | |
dispatch_time( | |
DISPATCH_TIME_NOW, | |
Int64(delay * Double(NSEC_PER_SEC)) | |
), | |
dispatch_get_main_queue(), | |
closure | |
) | |
} |
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
function solution(A, B, K) { | |
return (Math.floor(B/K) - ((A <= 1) ? 0 : Math.floor((A-1)/K))) + ((A === 0)?1:0); | |
} |
NewerOlder