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
var app = require('express')(); | |
var server = require('http').Server(app); | |
var io = require('socket.io')(server); | |
var players = []; | |
var blebbies = []; | |
server.listen(8081, function(){ | |
for(var i = 0; i< 10000; i++){ | |
blebbies.push(new blebby(generateUUID(),Math.random()*10000 -5000,Math.random()*10000 -5000)); |
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
"records": [ | |
{ | |
"id": "53", | |
"categoryId": "2", | |
"categoryName": "", | |
"name": "Bu shop", | |
"updatedDate": "2007-01-13 22:10:06", | |
"description": "New m..as", | |
"address": "La cast", | |
"town": "optio", |
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
"records": [ | |
{ | |
"id": "53", | |
"categoryId": "2", | |
"categoryName": "", | |
"name": "Bu shop", | |
"updatedDate": "2007-01-13 22:10:06", | |
"description": "New m..as", | |
"address": "La cast", | |
"town": "optio", |
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.dmi3coder.scorsero.rest; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class ResponseFactory<T> { | |
private List<T> data; | |
private ResponseInfo info; | |
public enum ResponseInfo{ |
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 class MessageInternalUserTextViewHolder extends MessageTextViewHolder { | |
public MessageInternalUserTextViewHolder(View itemView, CustomSettings customSettings) { | |
super(itemView, customSettings); | |
avatar = (ImageView) itemView.findViewById(R.id.message_user_text_image_view_avatar); | |
carrot = (ImageView) itemView.findViewById(R.id.message_user_text_image_view_carrot); | |
initials = (TextView) itemView.findViewById(R.id.message_user_text_text_view_initials); | |
text = (TextView) itemView.findViewById(R.id.message_user_text_text_view_text); | |
timestamp = (TextView) itemView.findViewById(R.id.message_user_text_text_view_timestamp); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.scores.sportium.es"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
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.a8wizards.moximo_recruit_app.dashboard; | |
import android.databinding.DataBindingUtil; | |
import android.support.v4.content.ContextCompat; | |
import android.support.v4.util.ArrayMap; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
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
@Aspect | |
public class PermissionAspect { | |
@Around("execution(@DangerousPermission void *(..))") | |
public void beforeDangerousMethod(ProceedingJoinPoint point) | |
throws Throwable { | |
Activity activity = ((ActivityHolder) point.getThis()).getActivity();//getting Activity | |
MethodSignature signature = (MethodSignature) point.getSignature(); | |
Method method = signature.getMethod(); | |
//Taking our required permission to check |
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
enum NoteType { | |
BASIC = 0; | |
REMINDER = 1; | |
SCRATCH = 2; | |
} | |
message Note { | |
int64 id = 1; | |
string name = 2; | |
int64 creationDate = 3; |
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
message Envelope { | |
enum Type { | |
GET_ALL_NOTES = 0; | |
SAVE_NOTE = 1; | |
DELETE_NOTE = 2; | |
} | |
Type type = 1; | |
int64 arrivalTime = 2; | |
int64 id = 3; |
OlderNewer