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 edu.princeton.gfts.experimental; | |
import org.springframework.stereotype.Component; | |
import org.springframework.transaction.annotation.Transactional; | |
import java.time.LocalDate; | |
import java.time.temporal.ChronoUnit; | |
import java.util.List; | |
@Component |
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 {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; | |
import {SampleService} from './sample.service'; | |
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; | |
import {ConfigurationService, LoggerService, PUDateTimePipe, PUDateTimePipeModule, PULoggerModule} from '@princeton/pu-csi-angular-core'; | |
import {SampleListComponent} from './sample-list.component'; | |
import {CommonModule} from '@angular/common'; | |
import {BrowserModule} from '@angular/platform-browser'; | |
import {SharedAnimationsModule} from '../shared/animations/shared-animations.module'; | |
import {HttpClient, HttpClientModule} from '@angular/common/http'; |
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
{ | |
"apiUrl": "http://example.org", | |
"foo": "bar" | |
} |
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 {Component, OnDestroy, OnInit, ViewChild} from '@angular/core'; | |
import {ImgurService} from './imgur.service'; | |
import {GalleryImage} from './gallery-image'; | |
import {Lightbox, LIGHTBOX_EVENT, LightboxEvent, LightboxConfig} from 'angular2-lightbox'; | |
import {Subscription} from 'rxjs/Rx'; | |
import {NavigationStart, Router} from '@angular/router'; | |
@Component({ | |
selector: 'app-gallery', | |
templateUrl: './gallery.component.html', |
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
foo | |
bar |
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 android.os.SystemClock; | |
import android.view.View; | |
import java.util.Map; | |
import java.util.WeakHashMap; | |
/** | |
* A Debounced OnClickListener | |
* Rejects clicks that are too close together in time. | |
* This class is safe to use as an OnClickListener for multiple views, and will debounce each one separately. |
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
class Mammal | |
constructor: (@species, @defining_char) -> | |
print: -> | |
"Hello I'm a " + @species + ". " + | |
"I have " + @defining_char + "." | |
cat = new Mammal('cat', 'claws') | |
alert(cat.print()) |
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
/* Copyright 2011 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
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
class CompoundInstanceControllerIntegrationSpec extends ControllerSpec { | |
static transactional = true | |
def "saving a new compound instance and compound"() { | |
setup: | |
controller.metaClass.message = {args -> "mockMessage"} | |
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
public class SampleGist { | |
public static void main(String[] args) { | |
System.out.println("this is a gist"); | |
} | |
} |