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
class CoroutineDebouncer<K, V> constructor( | |
private val pendingBoard: ConcurrentMap<K, Deferred<V?>> | |
) { | |
/** | |
* Debounce given a `task` based upon given `id`. This prevents jobs with same IDs run in parallel. | |
* For subsequent callers get Deferred<V> of first (winning) coroutine. | |
* Once Deferred<V> completes it is remove from the board. | |
* | |
* @param id for uniquely identifying a task | |
* @param context under which given coroutine will be executed |
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
from django.db import models | |
class PositiveBigIntergerRelDbTypeMixin(models.PositiveIntegerRelDbTypeMixin): | |
def rel_db_type(self, connection): | |
if connection.features.related_fields_match_type: | |
return self.db_type(connection) | |
else: | |
return models.BigIntegerField().db_type(connection=connection) | |
class PositiveBigIntegerField(PositiveBigIntegerRelDbTypeMixin, models.BigIntegerField): |
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
0-mail.com | |
007addict.com | |
020.co.uk | |
027168.com | |
0815.ru | |
0815.su | |
0clickemail.com | |
0sg.net | |
0wnd.net | |
0wnd.org |
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
// Source: http://answers.unity3d.com/questions/357033/unity3d-and-c-coroutines-vs-threading.html | |
// | |
// ***************************************************************************** | |
// Example Job - Inheret from this class and override ThreadFunction: | |
// ***************************************************************************** | |
// public class Job : ThreadedJob | |
// { | |
// public Vector3[] InData; // arbitary job data | |
// public Vector3[] OutData; // arbitary job data | |
// |
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"?> | |
<resources> | |
<!-- Dark Text Color for Light Background --> | |
<color name="textDarkPrimary">#DE000000</color> <!--DE for %87 opacity--> | |
<color name="textDarkSecondary">#8A000000</color> <!--8A for %54 opacity--> | |
<color name="textDarkDisabled">#61000000</color> <!--61 for %38 opacity--> | |
<!-- White Text Color for Dark Background --> | |
<color name="textLightPrimary">#FFFFFF</color> <!--%100 opacity--> |