Character Interaction Networks for the HBO Series "Game of Thrones" from all seasons. The data visualisation is made with D3.js and is forked from the following dataset : https://github.com/mathbeveridge/gameofthrones (forked
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
datamilestone = [ | |
{milestone_id:"Dog1", milestone_name:"Spot"}, | |
{milestone_id:"Cat1", milestone_name:"Tiger"}, | |
{milestone_id:"Dog2", milestone_name:"Rover"}, | |
{milestone_id:"Cat2", milestone_name:"Leo"} | |
]; | |
datastage = [ | |
{kode:"Dog1", stage:1}, | |
{kode:"Cat2", stage:3} |
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 'dart:convert'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart' as http; | |
class AccountPage extends StatefulWidget { | |
@override | |
_AccountPageState createState() => _AccountPageState(); | |
} |
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
(new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec |
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
var express = require('express'); | |
var app = express(); | |
var Server = require('http').Server; | |
var server = new Server(app); | |
var cors = require('cors') | |
var port = 3131 | |
app.options('*', cors()) | |
app.use(express.urlencoded({ extended: true })); | |
app.use(express.json()); |
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
// dari https://codepen.io/PJCHENder/pen/jamJpj?editors=1010 | |
// masukan html ini | |
// <input type="hidden" id="idcopy" :value="copyval"> | |
// <button class="absolute cursor-pointer" style="right:10px;top:100px;" @click="copyvalue()">tes</button> | |
copyValue () { | |
let testingCodeToCopy = document.querySelector('#idcopy') | |
testingCodeToCopy.setAttribute('type', 'text') | |
testingCodeToCopy.select() |
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
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
async function something() { | |
console.log("this might take some time...."); | |
await delay(5000); | |
console.log("done!") | |
} | |
something(); |
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
<html> | |
<body> | |
<webview id="foo" allowpopups sandbox="true" preload="preload-webview.js" src="index.html" style="display:inline-flex; width:640px; height:480px"></webview> | |
<script type="text/javascript" charset="utf-8"> | |
</script> | |
</body> | |
</html> |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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> | |
<div class="title">Information</div> | |
<div class="items"> | |
<div class="item"> | |
<div class="name">Path:</div> | |
<div class="value">{{ path }}</div> | |
</div> | |
<div class="item"> | |
<div class="name">Route Name:</div> |
NewerOlder