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
.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 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 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 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 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 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 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(); |
OlderNewer