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
docker exec -i kind-1-control-plane patch --directory=/etc/kubernetes/manifests <<EOF | |
--- kube-apiserver.yaml.orig 2018-10-10 12:58:56.739231422 -0700 | |
+++ kube-apiserver.yaml 2018-10-10 13:12:41.832606463 -0700 | |
@@ -18,7 +18,7 @@ | |
- --allow-privileged=true | |
- --client-ca-file=/etc/kubernetes/pki/ca.crt | |
- --disable-admission-plugins=PersistentVolumeLabel | |
- - --enable-admission-plugins=NodeRestriction | |
+ - --enable-admission-plugins=NodeRestriction,PodPreset,NamespaceLifecycle,NamespaceExists,ResourceQuota | |
- --enable-bootstrap-token-auth=true |
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 json | |
import time | |
import urllib.request | |
import pandas as pd | |
# Option 1 with urlload | |
start0 = time.time() | |
json_objects = [] | |
for json_object in urllib.request.urlopen("https://storage.googleapis.com/xcc-de-assessment/events.json"): |
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 im.dlg.push | |
import Update | |
import org.junit.After | |
import org.junit.Before | |
import org.junit.Rule | |
import org.junit.Test | |
import org.junit.rules.TemporaryFolder | |
import java.io.File | |
import java.io.FileOutputStream |
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 class DialogGcmListenerService extends GcmListenerService { | |
private static final String TAG = "DialogGcmListenerService"; | |
@Override | |
public void onMessageReceived(String from, Bundle data) { | |
Log.d(TAG, "Message received #" + data.toString()); | |
Log.d(TAG, "from #" + from); | |
if (!data.isEmpty()) { |
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 static class ExampleViewHolder extends RecyclerView.ViewHolder | |
implements View.OnClickListener { | |
private int originalHeight = 0; | |
private boolean isViewExpanded = false; | |
private YourCustomView yourCustomView | |
public ExampleViewHolder(View v) { | |
super(v); | |
v.setOnClickListener(this); |
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
<canvas id="canvas"></canvas> | |
<script type="text/javascript"> | |
var canvas = document.getElementById('canvas'); | |
var context = canvas.getContext('2d'); | |
Image img1 = new Image(); | |
Image img2 = new Image(); | |
img1.onload = function() { | |
canvas.width = img1.width; | |
canvas.height = img1.height; |
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 canvas = document.getElementById("canvas"); | |
var ctx = canvas.getContext("2d"); | |
var image1 = loadImage('http://твоя фоновая картинка', main); | |
var image2 = loadImage('http://qr код', main); | |
var imagesLoaded = 0; | |
function main() { | |
imagesLoaded += 1; |
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 void fill() { | |
if (topTabsTitles.getChildCount() > 0) | |
return; | |
Events.get(getActivity()).catalog().onProductOpened(product); | |
setUpPhotoPager(); | |
setUpProductDetails(); | |
setProductInfo(); |
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
<style type="text/css"> | |
.atlwdg-trigger { | |
position: fixed; | |
background: #013466; | |
padding: 5px; | |
border: 2px solid white; | |
border-top: none; | |
font-weight: bold; | |
color: #577CBD; | |
display: block; |
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 class CronServiceTask implements PluginJob { | |
public static final String MAIL = "mail"; | |
private MultiQueueTaskManager taskManager; | |
private SearchService searchService; | |
SearchResults searchResults; | |
public void execute(Map<String, Object> jobDataMap) { |
NewerOlder