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
-- AstroNvim Configuration Table | |
-- All configuration changes should go inside of the table below | |
-- You can think of a Lua "table" as a dictionary like data structure the | |
-- normal format is "key = value". These also handle array like data structures | |
-- where a value with no key simply has an implicit numeric key | |
-- BEGIN Nate | |
local get_file = function() | |
local current_path = vim.fn.expand('%:p:h') |
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
<Story | |
name="Filled Form" | |
play={ async ({ canvasElement }) => { | |
const canvas = within(canvasElement); | |
await userEvent.type(canvas.getByTestId('email'), 'email@provider.com'); | |
… | |
await userEvent.click(canvas.getByRole('button')); | |
await expect( | |
canvas.getByText( | |
'Everything is perfect. Your account is ready and we should probably get you started!' |
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
<WithStoreDisplay | |
title="Order Summary with entered Coupon" | |
starterActions={[ | |
LOAD_TEST_CONFIG(), | |
COUPON_AVAILABLE_ACTION, | |
DEFAULT_COURSE_ACTION(), | |
SET_ARTTSY_COUPON_CODE_ACTION, | |
]} | |
availableActions={AVAILABLE_ACTIONS} | |
> |
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
57,61d56 | |
< -- begin Nate | |
< copilot_no_tab_map = true, | |
< copilot_assume_mapped = true, | |
< copilot_tab_fallback = "", | |
< -- begin Nate | |
198,210d192 | |
< | |
< -- begin Nate | |
< ["<leader><leader>"] = { "<cmd>! ./run.sh<cr>", desc = "Run application" }, |
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
<?xml version="1.1"?> | |
<!DOCTYPE smil PUBLIC "-//W3C//DTD SMIL 3.0 Language//EN" | |
"http://www.w3.org/2008/SMIL30/SMIL30Language.dtd"> | |
<smil xmlns="http://www.w3.org/ns/SMIL" version="3.0" baseProfile="Language"> | |
<head> | |
<layout> | |
<root-layout width="150" height="200"/> | |
<region xml:id="b" left="0" width="150" top="0" height="150" backgroundColor="purple"/> | |
<region xml:id="t" left="0" width="150" top="150" height="50"/> | |
</layout>` |
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 jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
function closepp () { | |
if (jQuery("a.SelLnkGreen").length > 0) { | |
alert("gotta live one"); | |
} |
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
# in order to do this: | |
# <div ng:controller="MyController">{{message}}</div> | |
# I used to be able to | |
class MyController | |
constructor:-> | |
@message = "Hello World" | |
# Now I need: |
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 @TunesCtrl | |
constructor:($xhr, @player)-> | |
$xhr 'GET', 'albums.json', (statusCode, body)=> | |
@albums = body | |
TunesCtrl.$inject = ['$xhr', 'player'] | |
class Player | |
constructor:(@$audio)-> |
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 @TunesCtrl | |
constructor:($xhr)-> | |
@player = @$parent.$new Player | |
$xhr 'GET', 'albums.json', (statusCode, body)=> | |
@albums = body | |
TunesCtrl.$inject = ['$xhr'] | |
class @Player | |
constructor:(@$audio)-> |
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
window.Album = Backbone.Model.extend | |
isFirstTrack: (index)-> | |
index == 0 | |
isLastTrack: (index)-> | |
index >= @get('tracks').length - 1 | |
trackUrlAtIndex: (index)-> | |
if @get('tracks').length > index | |
@get('tracks')[index].url | |
else | |
null |
NewerOlder