-
What is the last version of Angular you used for development?
-
What is the purpose of a Component in Angular?
-
What are the main pieces of a Component that need to be defined?
-
What is the purpose of a Module in Angular?
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 java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import org.springframework.http.client.SimpleClientHttpRequestFactory; | |
import org.springframework.oxm.jaxb.Jaxb2Marshaller; | |
import org.springframework.ws.client.WebServiceClientException; | |
import org.springframework.ws.client.WebServiceIOException; | |
import org.springframework.ws.client.core.support.WebServiceGatewaySupport; | |
import org.springframework.ws.client.support.interceptor.ClientInterceptor; | |
import org.springframework.ws.context.MessageContext; |
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
# Typically I use this file as a boilerplate to configure an nginx docker container | |
# | |
# This goes in /etc/nginx/conf.d/default.conf | |
# If you are reverse proxying an API | |
upstream api { | |
server API_SERVER_GOES_HERE:port; | |
} | |
server { |
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 com.honlsoft.utils; | |
public class DateTimeUtils { | |
public static LocalDate parseDate(String date) { | |
var datePattern = DateTimeFormatter.ofPattern("yyyyMMdd"); | |
return LocalDate.parse(date, datePattern); | |
} | |
} |
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
-- Return referenced table name, and column for each foreign key constraint | |
DECLARE @TableID INT = OBJECT_ID('SCHEMA.TABLE') | |
select OBJECT_NAME(fkc.referenced_object_id) as referenced_table_name, | |
c.name as referenced_column, | |
fk.name as foreign_key_name, | |
OBJECT_NAME(fk.parent_object_id) as owning_table | |
from sys.foreign_keys fk | |
inner join sys.foreign_key_columns fkc on fk.object_id = fkc.constraint_object_id | |
inner join sys.columns c on fkc.referenced_column_id = c.column_id and fkc.parent_object_id = c.object_id |
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
using System.IO; | |
using System; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
namespace SampleApp { | |
class Program { | |
static void Main(string[] args) { | |
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
$project_dir="project_name" | |
mkdir $project_dir | |
cd $project_dir | |
npm init -y | |
# TODO: update npm license to MIT | |
# Add in commands to run parcel in develop / build | |
npm install typescript --save-dev | |
tsc --init | |
# TODO: command to update TSC to have jsx: React |
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 HexOps { | |
public static byte[] ToBytesFromHex(string hex) { | |
byte[] ret = new byte[hex.Length]; | |
for (int i = 0; i < hex.Length; i++) { | |
ret[i] = Convert.ToByte(hex[i]); | |
} | |
return ret; | |
} | |
} |