You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
package codepath.com.recyclerviewfun; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Contact { | |
private String mName; | |
private boolean mOnline; | |
public Contact(String name, boolean online) { |
//author: laoyur | |
//inspired of http://stackoverflow.com/a/31021154 | |
package com.laoyur.test; | |
import java.util.List; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Rect; | |
import android.os.Bundle; | |
import android.view.MotionEvent; | |
import android.view.View; |
type SharedWithInviteRequest { | |
........ | |
createdDate: RateLimiting | |
} | |
// in order to write a message, I must first make an entry in users/${uid}/rate_limiting/{feature} is Number | |
// additionally, that message must be within 500ms of now, which means I can't | |
// just re-use the same one over and over, thus, we've effectively required messages | |
// to be 5 seconds apart | |
type RateLimiting extends Number { |
/** | |
* System configuration | |
*/ | |
(function (global) { | |
System.config({ | |
paths: { | |
// paths serve as alias | |
'npm:': 'node_modules/' | |
}, | |
// map tells the System loader where to look for things |
exports.updateFeed = functions.database.ref('/stories/{userId}/{storyId}').onWrite(event => { | |
const userId = event.params.userId; | |
const storyId = event.params.storyId; | |
let followersRef = admin.database().ref('/followers/'+userId); | |
if(!event.data.val()){ | |
//post was deleted | |
followersRef.once("value", function(snap) { | |
snap.forEach(function(childSnapshot) { | |
let followerId = childSnapshot.key; |
const functions = require("firebase-functions") | |
const cors = require("cors") | |
const express = require("express") | |
/* Express with CORS & automatic trailing '/' solution */ | |
const app3 = express() | |
app3.use(cors({ origin: true })) | |
app3.get("*", (request, response) => { | |
response.send( | |
"Hello from Express on Firebase with CORS! No trailing '/' required!" |
var db = firebase.firestore(); | |
var content = require("./sourceData.json"); | |
content && | |
Object.keys(content).forEach(contentKey => { | |
const nestedContent = content[contentKey]; | |
if (typeof nestedContent === "object") { | |
Object.keys(nestedContent).forEach(docTitle => { | |
firebase | |
.firestore() |
#if UNITY_EDITOR | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEditor; | |
public class FontSwitcher : EditorWindow | |
{ | |
[MenuItem("Font/Show Window")] | |
public static void ShowFontWindow() | |
{ |