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 org.junit.jupiter.api.Assertions; | |
import org.junit.jupiter.api.Test; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.xbill.DNS.DClass; | |
import org.xbill.DNS.ExtendedResolver; | |
import org.xbill.DNS.Lookup; | |
import org.xbill.DNS.Message; | |
import org.xbill.DNS.Name; | |
import org.xbill.DNS.Record; |
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 org.xbill.DNS.Lookup; | |
import org.xbill.DNS.Name; | |
import org.xbill.DNS.Record; | |
import org.xbill.DNS.Resolver; | |
import org.xbill.DNS.TextParseException; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; |
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 ( | |
"encoding/json" | |
"errors" | |
"net/http" | |
) | |
type Customer struct { | |
ID string `json:"id"` | |
Name string `json:"name"` | |
} |
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 ( | |
"encoding/json" | |
"errors" | |
"net/http" | |
) | |
type CustomerStringId struct { | |
ID string `json:"id"` | |
Name string `json:"name"` | |
} |
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 ( | |
"encoding/json" | |
"errors" | |
"net/http" | |
) | |
type Customer struct { | |
ID int `json:"id"` | |
Name string `json:"name"` | |
} |
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 main | |
var size = 1 << 20 | |
func Append() { | |
var s []int | |
for i := 0; i < size; i++ { | |
s = append(s, i) | |
} | |
_ = s |
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
::ng-deep { // shadow piercing | |
@import "../../node_modules/dhtmlx-gantt/codebase/dhtmlxgantt.css"; | |
} | |
:host { // styles in the element that hosts the component | |
display: block; | |
position: relative; | |
width: 100%; | |
} |
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 'dhtmlx-gantt'; | |
// or more explicitly, | |
// import * as gantt from 'dhtmlx-gantt'; | |
@Component({ | |
selector: "gantt-chart", | |
template: "<div #gantt></div>", | |
styleUrls: ['./styles.scss'] | |
}) |