Skip to content

Instantly share code, notes, and snippets.

View ianomad's full-sized avatar

Iliiaz Akhmedov ianomad

View GitHub Profile
@ianomad
ianomad / main.go
Last active September 15, 2016 16:29
Sample negroni and newrelic go-agent integration
package main
import (
"fmt"
"net/http"
"github.com/newrelic/go-agent"
"github.com/urfave/negroni"
)
func main() {
public class Solution {
class Entry {
int pos;
int val;
Entry(int pos, int val) {
this.pos = pos;
this.val = val;
}
}
public class SearchNewsFeedPresenter extends NewsFeedPresenter {
private SearchNewsFragment view;
private Subscription pendingSubscription;
private final static int DEFAULT_PAGE_SIZE = 20;
public SearchNewsFeedPresenter(Bundle savedState, SearchNewsFragment view) {
ReporterApplication application = (ReporterApplication) view.getActivity().getApplication();
application.getAppComponent().inject(this);
Icepick.restoreInstanceState(this, savedState);
{
"node": {
"id": "test",
"cluster": "test",
"locality": {
"region": "",
"zone": ""
},
"metadata": {}
},
package test;
import com.google.common.collect.ImmutableList;
import com.google.protobuf.Duration;
import envoy.api.v2.Cds;
import envoy.api.v2.Eds;
import envoy.api.v2.Lds;
import envoy.api.v2.Rds;
import envoy.api.v2.core.AddressOuterClass;
import envoy.api.v2.endpoint.EndpointOuterClass;
{
"node": {
"id": "test",
"cluster": "test",
"locality": {
"region": "",
"zone": ""
},
"metadata": {}
},
class Solution {
private static final int CONTAINER = 1;
private static final int BOX = 0;
public int scoreOfParentheses(String S) {
Stack<Integer> data = new Stack<Integer>();
int sum = 0;
Playbox list
    • Playbox U01D91319J6_1613361504592U01D91319J6_1613361504592U01D91319J6_1613361504592
        • Web page @ http://ec2-3-239-50-213.compute-1.amazonaws.com
        • VSCode @ http://ec2-3-239-50-213.compute-1.amazonaws.com:8081?folder=/root/workspace
#!/bin/bash
set -eu
# ---------------- variables --------------------
sandbox_domain="demo.sb.devsbox.io"
email="[email protected]"
nginx_conf_content=$(cat << EOM
#!/bin/bash
set -eu
# ---------------- variables --------------------
sandbox_domain="demo.sb.devsbox.io"
email="[email protected]"
nginx_conf_content=$(cat << EOM