sh docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD={PW}' -p 1401:1433 -d mcr.microsoft.com/mssql/server
sh docker cp Footballers.bak {INSTANCE_ID}:/var/opt/mssql/data/{BACKUP_NAME}.bak
// It needs to be converted into string to match this: const T& input | |
template <typename T> | |
typename enable_if< | |
is_same<typename decay<T>::type, string>::value || // type can decay into string | |
is_same<typename decay<T>::type, string_view>::value || // type can decay into string_view | |
is_convertible<T, const char*>::value>::type // const char* can be converted into the upper "same" types | |
printString(const T& input) | |
{ | |
cout << "Printing string: " << input << endl; |
bool randomBool() { | |
std::random_device rd; | |
mt19937 generator; | |
if (rd.entropy() == 0) { // Fallback to using time for randomness | |
using namespace std::chrono; | |
generator = mt19937(static_cast<unsigned int>(chrono::system_clock::now().time_since_epoch().count())); | |
} else { | |
generator = mt19937(rd()); | |
} |
## Tested with VS CODE Rest Client extension | |
## First trigger getToken request, it will use data from getToken response body in specified requests. | |
### Get Token for "bob" | |
# @name getToken | |
POST http://localhost:5001/connect/token | |
Content-Type: application/x-www-form-urlencoded | |
client_id=rest_tester |
@Composable | |
fun MyCustomShape(color: Color) { | |
Canvas(modifier = Modifier | |
.size(100.dp) | |
.background(Color.Black) | |
) { | |
drawCircle(color = color, radius = 50.0f, center = center) | |
} | |
} |
class RejectedError extends Error { | |
gibberishCode = 999; | |
constructor() { | |
super("REJECTED!!!"); | |
} | |
} | |
const example = () => { | |
return new Promise((resolve: (value: string) => void, reject: (reason: RejectedError) => void) => { |
import { NavigationContainer } from "@react-navigation/native"; | |
import GibberishScreen from "./screens/GibberishScreen"; | |
import HomeScreen from "./screens/HomeScreen"; | |
import { createNativeStackNavigator } from "@react-navigation/native-stack"; | |
export type AppStackParamList = { | |
Home: undefined; | |
Gibberish: { example: string }; | |
} |
const EMAIL_REGEX_PATTERN = /^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/; | |
const USERNAME_REGEX_PATTERN = /^([A-Za-z\d._-]{5,})$/; // English letters + Numbers + . _ - | |
const PASSWORD_REGEX_PATTERN = /^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[._*-])[A-Za-z\d._*-]{8,}$/; | |
// Should contain at least one uppercase english letter, atl east one lowercase english letter, | |
// at least one number, at least one of . _ * - |
navigator.clipboard.writeText(window.location.href); |
SELECT | |
id, | |
name, | |
COUNT(value) AS WordCount | |
FROM | |
Peoples | |
CROSS APPLY | |
STRING_SPLIT(name, ' ') | |
GROUP BY | |
id, name |