Skip to content

Instantly share code, notes, and snippets.

@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)->
# 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:
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");
}
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" },
<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}
>
<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!'
-- 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')