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
| // models/Event.js | |
| var keystone = require('keystone'), | |
| Types = keystone.Field.Types; | |
| var Event = new keystone.List('Event'); | |
| Event.add({ | |
| FB_event_id: { type: Types.Number, required: true, initial: true, format: false }, | |
| name: { type: Types.Text }, | |
| FB_event_name: { type: Types.Text }, |
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
| public abstract class RealmRecyclerViewAdapter<T extends RealmObject, VH extends RecyclerView.ViewHolder> | |
| extends RecyclerView.Adapter<VH> { //put this in `io.realm` | |
| protected LayoutInflater inflater; | |
| protected RealmResults<T> realmResults; | |
| protected Context context; | |
| private final RealmChangeListener listener; | |
| public RealmRecyclerViewAdapter(Context context, RealmResults<T> realmResults, boolean automaticUpdate) { | |
| if (context == null) { | |
| throw new IllegalArgumentException("Context cannot be null"); |
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
| package com.hypetrak.editorial.pages.list_2016; | |
| import android.os.Bundle; | |
| import android.support.annotation.IdRes; | |
| import android.support.annotation.LayoutRes; | |
| import android.util.Log; | |
| import android.view.View; | |
| import com.hypebeast.sdk.api.exception.ApiException; | |
| import com.hypebeast.sdk.api.model.hypetrak.htpost; | |
| import com.hypebeast.sdk.api.resources.ht.hTrak; |
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 java.io.BufferedInputStream; | |
| import java.io.BufferedWriter; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.io.OutputStreamWriter; |
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
| //Allows multiple SceneView cameras in the editor to be setup to follow gameobjects. | |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| [ExecuteInEditMode] | |
| public class SceneViewCameraFollower : MonoBehaviour | |
| { | |
| #if UNITY_EDITOR |
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
| /// <summary> | |
| /// UnityTutorials homepage: https://github.com/jm991/UnityTutorials | |
| /// This software is provided 'as-is', without any express or implied | |
| /// warranty. In no event will the authors be held liable for any damages | |
| /// arising from the use of this software. | |
| /// | |
| /// Permission is granted to anyone to use this software for any purpose, | |
| /// and to alter it and redistribute it freely, subject to the following restrictions: | |
| /// | |
| /// 1. The origin of this software must not be misrepresented; you must not |
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
| /// <summary> | |
| /// UnityTutorials - A Unity Game Design Prototyping Sandbox | |
| /// <copyright>(c) HKM hesk 2014 </copyright> | |
| /// | |
| /// | |
| /// This software is provided 'as-is', without any express or implied | |
| /// warranty. In no event will the authors be held liable for any damages | |
| /// arising from the use of this software. | |
| /// | |
| /// Permission is granted to anyone to use this software for any purpose, |
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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| public class FollowTrackingCamera : MonoBehaviour | |
| { | |
| // Camera target to look at. | |
| public Transform target; | |
| private Transform check_target; | |
| // Exposed vars for the camera position from the target. |
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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| [RequireComponent (typeof(LineRenderer))] | |
| public class RaycastReflectionGameCom : MonoBehaviour | |
| { | |
| //this game object's Transform | |
| private Transform goTransform; | |
| //the attached line renderer |
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
| function httpredirectpie(url) { | |
| var options = { | |
| headers:{ | |
| "Accept":"application/json", | |
| "X-Api-version":"2.0" | |
| }, | |
| muteHttpExceptions: true, | |
| followRedirects: false | |
| }; | |
| var responose = UrlFetchApp.fetch(url, options); |