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
#!/bin/sh | |
if [ ${UID} = 0 ] | |
then | |
sync;echo 1 > /proc/sys/vm/drop_caches | |
else | |
su -c "sync;echo 1 > /proc/sys/vm/drop_caches" | |
fi |
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
#!/bin/sh | |
if [ ${UID} = 0 ] | |
then | |
swapoff -a && swapon -a | |
else | |
su -c "swapoff -a && swapon -a" | |
fi |
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 '~firebaseui/dist/firebaseui.css'; |
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
<firebase-ui></firebase-ui> |
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 {AngularFireModule} from '@angular/fire'; | |
import {AngularFireAuthModule} from '@angular/fire/auth'; | |
import {FirebaseUIModule, firebase, firebaseui} from 'firebaseui-angular'; | |
... | |
const firebaseUiAuthConfig: firebaseui.auth.Config = { | |
signInFlow: 'popup', | |
signInOptions: [ | |
firebase.auth.GoogleAuthProvider.PROVIDER_ID, |
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
# Only firebaseui-angular | |
npm install firebaseui-angular | |
# Install with all dependent packages | |
npm install firebase firebaseui @angular/fire firebaseui-angular |
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 com.googlecode.objectify.ObjectifyService; | |
import org.json.simple.JSONArray; | |
import org.json.simple.JSONObject; | |
import org.json.simple.JSONValue; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.BufferedReader; | |
import java.io.IOException; |
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 com.googlecode.objectify.annotation.Entity; | |
import com.googlecode.objectify.annotation.Id; | |
import lombok.Getter; | |
import lombok.Setter; | |
/** | |
* Cache entity for retrieved data from MavenCentral | |
* | |
* Created by k on 16. 5. 11. | |
*/ |
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
<filter> | |
<filter-name>ObjectifyFilter</filter-name> | |
<filter-class>com.googlecode.objectify.ObjectifyFilter</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>ObjectifyFilter</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> |
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
dependencies { | |
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9+' | |
compile "com.google.appengine:appengine-api-1.0-sdk:1+" // for google cloud datastore | |
providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.+' | |
providedCompile 'org.projectlombok:lombok:1.16+' | |
compile 'com.google.code.gson:gson:2+' | |
compile 'com.google.guava:guava:19.+' // for google cloud datastore | |
compile 'com.googlecode.objectify:objectify:5+' // for google cloud datastore |
NewerOlder