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
package com.davidepugliese.springfood.security; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE}) |
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
package com.davidepugliese.springfood; | |
import org.hibernate.SessionFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.web.servlet.FilterRegistrationBean; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.EnableLoadTimeWeaving; | |
import org.springframework.orm.jpa.vendor.HibernateJpaSessionFactoryBean; | |
import org.springframework.web.servlet.config.annotation.CorsRegistry; |
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
package com.davidepugliese.springfood.security; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE}) |
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 {Observable} from "rxjs/Observable"; | |
import "rxjs/observable/concat"; | |
import "rxjs/observable/from"; | |
import "rxjs/observable/of"; | |
import "rxjs/add/operator/map"; | |
import "rxjs/add/operator/mergeMap"; | |
import "rxjs/add/operator/startWith"; | |
import "rxjs/add/operator/filter"; | |
import "rxjs/add/operator/switchMap"; |
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
/* | |
eslint-disable react/prefer-stateless-function, react/jsx-boolean-value, | |
no-undef, jsx-a11y/label-has-for, react/jsx-first-prop-new-line | |
*/ | |
class TimersDashboard extends React.Component { | |
state = { | |
timers: [ | |
{ | |
title: 'Practice squat', | |
project: 'Gym Chores', |
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
export const FETCH_USER = 'FETCH_USER'; | |
export const FETCH_USER_FULFILLED = 'FETCH_USER_FULFILLED'; |
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
export const FETCH_USER = 'FETCH_USER'; | |
export const FETCH_USER_FULFILLED = 'FETCH_USER_FULFILLED'; |
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 json | |
import urllib | |
from pprint import pprint | |
from urllib import request, parse | |
import pytest | |
from inspect import getsourcefile | |
from os import path, sys | |
current_dir = path.dirname(path.abspath(getsourcefile(lambda:0))) |
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 json | |
import urllib | |
from pprint import pprint | |
from urllib import request, parse | |
import pytest | |
from inspect import getsourcefile | |
from os import path, sys | |
current_dir = path.dirname(path.abspath(getsourcefile(lambda:0))) |
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> | |
var tab = null; | |
var menuSelector = null; | |
jQuery(function ($) { | |
console.log('test'); | |
//howtos tab | |
function changeMenuSelector() { | |
if ($( document ).width() > 967) { | |
menuSelector = 'top-menu-nav'; | |
} else { |