Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

-- 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')
<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!'
<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}
>
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" },
<?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>`
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");
}
# 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:
@ludicast
ludicast / Tunes.coffee
Created November 28, 2011 20:09
updated peepcode-tunes example
class @TunesCtrl
constructor:($xhr, @player)->
$xhr 'GET', 'albums.json', (statusCode, body)=>
@albums = body
TunesCtrl.$inject = ['$xhr', 'player']
class Player
constructor:(@$audio)->
@ludicast
ludicast / Tunes.coffee
Created November 28, 2011 00:43
Coffeescript conversion of peepcode-tunes for angularjs
class @TunesCtrl
constructor:($xhr)->
@player = @$parent.$new Player
$xhr 'GET', 'albums.json', (statusCode, body)=>
@albums = body
TunesCtrl.$inject = ['$xhr']
class @Player
constructor:(@$audio)->
@ludicast
ludicast / backbone_tunes.coffee
Created November 5, 2011 02:14
translation into coffeescript of code for backbone.js peepcode
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