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
{ | |
"labels": { | |
"l1" : "v1", | |
"l2" : "v2", | |
"l3" : "v3", | |
"observability":"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
public class MetadataFilter extends OncePerRequestFilter { | |
@Override | |
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) | |
throws ServletException, IOException { | |
try { | |
String tenantId = request.getHeader('X-Tenant-Id'); | |
TenantContextHolder.getContext().setTenantId(tenantId); | |
filterChain.doFilter(request, response); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<profiles version="21"> | |
<profile kind="CodeFormatterProfile" name="wso2_code_style" version="21"> | |
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/> | |
<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> | |
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> | |
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/> | |
<setting id="org.eclipse.jdt.core.formatter.text_block_indentation" value="0"/> | |
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> | |
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="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
// TODO: make `pages` optional and measure the div when unspecified, this will | |
// allow more normal document flow and make it easier to do both mobile and | |
// desktop. | |
import { | |
createContext, | |
useCallback, | |
useContext, | |
useEffect, | |
useMemo, | |
useRef, |
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
{ | |
"basic_information": { | |
"name": "Suvin Kodituwakku", | |
"birthday": "21/11/1998", | |
"email": "hello@suvin.me", | |
"phone_number": "+94771655198", | |
"home_address": "35B, Kitulampitiya Rd, Kalegana, Galle, Sri Lanka.", | |
"website": "https://suvin.me", | |
"external_links": [ | |
"https://github.com/Suvink", |
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
"use strict"; | |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
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
{ | |
"apps": [ | |
{ | |
"name": "Sample App Name", | |
"script": "index.js", | |
"watch": "./", | |
"log_date_format": "YYYY-MM-DD HH:mm Z" | |
} | |
] | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <omp.h> | |
#include <sys/time.h> | |
#define MATRIX_SIZE 1024 | |
int main() | |
{ | |
int i,j,k,l,p,q,r; |
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
#!/usr/bin/env pybricks-micropython | |
from pybricks.hubs import EV3Brick | |
from pybricks.ev3devices import Motor, ColorSensor | |
from pybricks.parameters import Port | |
from pybricks.tools import wait | |
from pybricks.robotics import DriveBase | |
from random import randint | |
# Initialize EV3 Brick |
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
// server.js | |
// | |
// Use this sample code to handle webhook events in your integration. | |
// | |
// 1) Paste this code into a new file (server.js) | |
// | |
// 2) Install dependencies | |
// npm install stripe | |
// npm install express | |
// |
NewerOlder