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
| INCLUDE "hardware.inc" | |
| ; Beginning of the rom | |
| SECTION "Header", ROM0[$100] | |
| di ; Disable interrupts since we don't want to be interrupted | |
| jp Start ; Jump to the Start label | |
| nop ; No nothing for 1 cycle (approx: 1MgHz) | |
| ds $150 - $104 ; Write nothing for $150 to $104 which is the rom header information |
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
| // ==UserScript== | |
| // @name Gitlab search shortcut | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Gives a keyboard shortcut to the search field in Gitlab | |
| // @author Bradyn Glines | |
| // @include /^https:\/\/gitlab\.*/*/ | |
| // @grant none | |
| // ==/UserScript== |
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
| defmodule Mapper do | |
| def extract_associations(%{} = game) do | |
| Enum.reduce(map, %{}, fn {key, value}, item -> | |
| cond do | |
| is_map(value) -> | |
| put_map(item, key, extract_map_data(value)) | |
| is_list(value) -> | |
| list_data = Enum.reduce(value, [], &[extract_map_data(&1) | &2]) | |
| put_map(item, key, list_data) |
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
| local Timer = {} | |
| Timer.__index = Timer | |
| local RunService = game:GetService("RunService") | |
| function Timer.new() | |
| local self = setmetatable({}, Timer) | |
| -- Events | |
| self._finishedEvent = Instance.new("BindableEvent") |
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
| local TweenService = game:GetService("TweenService") | |
| local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
| local Nevermore = require(ReplicatedStorage:WaitForChild("Nevermore")) | |
| local Roact = Nevermore("Roact") | |
| local RoactRodux = Nevermore("RoactRodux") | |
| local DayOver = Roact.Component:extend("DayOver") | |
| function DayOver:init() | |
| self.frameRef = Roact.createRef() |
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
| [{:column 0 :line 1 :token "(" :type "LPAREN"} | |
| {:column 1 :line 1 :token "local" :type "KEYWORD"} | |
| {:column 7 :line 1 :token "core" :type "VARIABLE"} | |
| {:column 12 :line 1 :token "(" :type "LPAREN"} | |
| {:column 13 :line 1 :token "require" :type "FUNC"} | |
| {:column 21 :line 1 :token ":core" :type "FUNC"} | |
| {:column 26 :line 1 :token ")" :type "RPAREN"} | |
| {:column 27 :line 1 :token ")" :type "RPAREN"} | |
| {:column 0 :line 3 :token "(" :type "LPAREN"} | |
| {:column 1 :line 3 :token "local" :type "KEYWORD"} |
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
| (local keywords (require :keywords)) | |
| (local types {:arg "ARG" | |
| :doc "DOCSTRING" | |
| :fn "FUNC" | |
| :keyword "KEYWORD" | |
| :let "VARIABLE" | |
| :lbracket "LBRACKET" | |
| :lcurly "LCURLY" | |
| :lparen "LPAREN" |
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
| (where ident (not (identifier? ident))) (if (keyword? str-token) | |
| (parsers.next text pos col 1 | |
| line tokens | |
| str-token | |
| types.keyword) | |
| (string.find str-token "^:%w*") | |
| ;; Match a "string" identifier i.e. :hello | |
| (parsers.next text pos col 1 | |
| line tokens | |
| str-token |
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 Service:SetProfile(player: Player, key: string, value: any) | |
| DataManager:Set(player, key, value) | |
| self.Client.FetchStoreAction:Fire(player, { type = ReducerActions.UPDATE_PLAYER_PROFILE }) | |
| end |
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
| require "json" | |
| module Gw2Api | |
| struct Bank | |
| include JSON::Serializable | |
| # The item's ID. | |
| getter id : UInt32 | |
| # The amount of items in the item stack. |