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 KcAdminClient from "@keycloak/keycloak-admin-client"; | |
const kcAdminClient = new KcAdminClient({ | |
baseUrl: "http://localhost:8080", | |
realmName: "myrealm", | |
}); | |
const credentials = { | |
grantType: "password", | |
username: "superuser", |
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
<template> | |
<div class="container"> | |
<div> | |
<button @click="toggleMouse">Toggle Mouse</button> | |
</div> | |
<Mouse v-if="isMouseVisible" /> | |
</div> | |
</template> | |
<script> |
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
{ | |
"projects": { | |
"ngx-introjs": { | |
"architect": { | |
"build": { | |
"options": { | |
"styles": [ | |
"node_modules/intro.js/introjs.css" | |
], | |
"scripts": [ |
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 argparse | |
from ws4py.client.threadedclient import WebSocketClient | |
import time | |
import threading | |
import sys | |
import urllib | |
import Queue | |
import json | |
import os | |
import datetime |
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 argparse | |
from ws4py.client.threadedclient import WebSocketClient | |
import time | |
import threading | |
import sys | |
import urllib.parse | |
import queue | |
import json | |
import time | |
import os |
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 React, {Component} from 'react'; | |
import {SafeAreaView, Text, View, Alert, Button, Switch} from 'react-native'; | |
import Sound from 'react-native-sound'; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
Sound.setCategory('Playback', true); // true = mixWithOthers |
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 React, { useRef } from 'react'; | |
import EditorJS from '@editorjs/editorjs' | |
const App = () => { | |
const editor = useRef() | |
const init = () => { | |
if (!editor.current) { | |
editor.current = new EditorJS({ | |
holder: 'editorjs', |
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
[ | |
{ | |
"gender": "male", | |
"name": { | |
"title": "Mr", | |
"first": "Apostolos", | |
"last": "Blohm" | |
}, | |
"location": { | |
"street": { |
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 { | |
#root /var/www/html/portfolio/public; | |
server_name jamesisme.com www.jamesisme.com; | |
if ($host = jamesisme.com) { | |
return 301 https://www.jamesisme.com$request_uri; | |
} | |
location / { |
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
FROM debian:buster-slim | |
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>" | |
ENV NGINX_VERSION 1.17.6 | |
ENV NJS_VERSION 0.3.7 | |
ENV PKG_RELEASE 1~buster | |
RUN set -x \ | |
# create nginx user/group first, to be consistent throughout docker variants |