A deep, exhaustive interview framework for building production-grade Claude Code skills.
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
| // Simple function | |
| const getURLParams = () => { | |
| const queryString = window.location.search; | |
| const urlParams = new URLSearchParams(queryString); | |
| return urlParams; | |
| } | |
| // Usage | |
| const exampleURLParams = getURLParams(); |
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
| import React, { useEffect, useState } from 'react'; | |
| import Script from "next/script"; | |
| const getURLParams = () => { | |
| const queryString = window.location.search; | |
| const urlParams = new URLSearchParams(queryString); | |
| return urlParams; | |
| } | |
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
| <script> | |
| import { stores } from '@sapper/app'; | |
| import { onMount } from 'svelte'; | |
| import {loadStripe} from '@stripe/stripe-js'; | |
| let paymentToken = ''; | |
| let paymentError; | |
| const { preloading, page, session } = stores(); | |
| $ : unitName = ($page.params && $page.params.unitName) ? $page.params.unitName[0] : ''; // The reactive part here I read the params to know about what is the selected unit by the user | |
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
| plugins: [ | |
| /** | |
| Something else that you have in your config | |
| **/ | |
| { | |
| resolve: `gatsby-source-filesystem`, | |
| options: { | |
| name: `images`, | |
| path: `${__dirname}/src/images`, |
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 app.services { | |
| interface ICoursesService { | |
| getCollection():void; | |
| get(courseId); | |
| create(courseObj); | |
| update(courseObj, courseId); | |
| remove(courseId); | |
| } |
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
| /** | |
| * Created by emiliano on 04/02/15. | |
| */ | |
| angular.module('exampleApp.auth') | |
| .service('AuthTokenService', function AuthTokenService(gettext, $state, $localStorage, $firebaseAuth, $firebaseObject, $q, $window, fireRef, UserService) { | |
| var service = this; | |
| var ref = new Firebase(fireRef); | |
| var auth = $firebaseAuth(ref); |
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
| .constant('geslachtOptions', [ | |
| {'value': 'M', 'label': 'Man'}, | |
| {'value' : 'V', 'label': 'Vrouw'}, | |
| {'value': 'O', 'label': 'Onbekend'} | |
| ]) | |
| .filter('geslachtFilter', function(geslachtOptions){ | |
| return function(input) { | |
| if(input) { |
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
| var selectCtrl = function($element) { | |
| var ctrl = this; | |
| $element.on('click', function(e){ | |
| //use a method that I have to see in the docs for select the text in an input that I don't remember now, should be accesible | |
| //$element | |
| }) | |
| }; |
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
| /*** inside Angular **/ | |
| var someService = function($q, $http) { | |
| var service = this; | |
| service.findSomething = function(query) { | |
| var somePromise = $q.defer() | |
| $http.get(/*something well done here */).then(function(data){ | |
| somePromise.resolve(data); |
NewerOlder