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.support.annotation.NonNull; | |
import android.support.v4.util.LruCache; | |
public class AppCache<T> { | |
private final int maxMemory = (int) (Runtime.getRuntime().maxMemory()/1024); | |
private final int cacheSize = maxMemory / 6; |
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
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { | |
return navigator.userAgent.match(/iPhone|iPad|iPod/i); | |
}, |
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
---------- Forwarded message ---------- | |
From: <hr@reddevilcatering.com> | |
Date: 14 Jul 2016 18:08 | |
Subject: Персонал за Велико Търново | |
To: <anatoli.mitev@gmail.com> | |
Cc: | |
Здравей Анатоли, | |
в продължение на разговора ви с Емо ти изпращам повече информация: | |
Имаме нужда от 5 момчета, които да ни помогнат за едно събитие на Кока Кола (23-24.07.) |
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 override void Configure(INancyEnvironment environment) | |
{ | |
environment.Views(runtimeViewUpdates: true); | |
base.Configure(environment); | |
} |
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 caffe | |
from collections import defaultdict | |
import numpy as np | |
import os | |
import sys | |
import matplotlib.image | |
caffe.set_device(7) | |
caffe.set_mode_gpu() |