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
sudo apt update | |
sudo apt -y install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | |
apt-cache policy docker-ce | |
sudo apt -y install docker-ce | |
sudo apt -y install docker-compose | |
sudo usermod -aG docker $USER | |
sudo systemctl status docker |
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
{ | |
"id": "mongoDb(id)", | |
"contentType": "article|longform|tweet|video", | |
"description": "280 Chars", | |
"language": "en|tl", | |
"source" : { | |
"id": "UUID4()", | |
"display_name" : "", | |
"url": "", | |
"domain" : "", |
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
[ | |
"Automotive", | |
"Budgeting", | |
"HVAC", | |
"Heaters", | |
"Hydraulics", | |
"Logistics Management", | |
"Management", | |
"Negotiation", | |
"Project Planning", |
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
print("welcome to the Business keyword generator") | |
print("these are your options as we are still working on this website") | |
print("Consumer") | |
print("Trader") | |
print("Brand name") | |
print("Contract") | |
print("Consideration") | |
print("Implied conditions") | |
print("3Rs") | |
print("Gurantee or Warranty") |
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
Today, 8:12 AM on app version 30 | |
OnePlus OnePlus5 (OnePlus5), Android 9 | |
Report 1 | |
java.lang.RuntimeException: | |
at android.os.AsyncTask$3.done (AsyncTask.java:354) | |
at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383) | |
at java.util.concurrent.FutureTask.setException (FutureTask.java:252) | |
at java.util.concurrent.FutureTask.run (FutureTask.java:271) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167) |
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
package in.bets.smartplug.gcm; | |
import android.annotation.TargetApi; | |
import android.app.ActivityManager; | |
import android.app.Notification; | |
import android.app.NotificationChannel; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.ComponentName; | |
import android.content.Context; |
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
java.lang.SecurityException: | |
at android.os.Parcel.createException (Parcel.java:1966) | |
at android.os.Parcel.readException (Parcel.java:1934) | |
at android.os.Parcel.readException (Parcel.java:1884) | |
at android.app.IActivityManager$Stub$Proxy.setServiceForeground (IActivityManager.java:5043) | |
at android.app.Service.startForeground (Service.java:695) | |
at in.bets.smartplug.gcm.RegistrationIntentService.onHandleIntent (RegistrationIntentService.java:33) | |
at android.app.IntentService$ServiceHandler.handleMessage (IntentService.java:76) | |
at android.os.Handler.dispatchMessage (Handler.java:106) | |
at android.os.Looper.loop (Looper.java:214) |
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
class component(object): | |
def __init__(self, arg): | |
super(component, self).__init__() | |
self.arg = arg | |
class ComponentX(*kwargs): | |
compoent_name = "populations" | |
x = slsl | |
dd = 10 | |
profresstion = |
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
// Boring | |
if (isThisAwesome) { | |
alert('yes'); // it's not | |
} | |
// Awesome | |
isThisAwesome && alert('yes'); | |
// Also cool for guarding your code | |
var aCoolFunction = undefined; |
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
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |
NewerOlder