This file contains hidden or 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 DataFrameTable import DataFrameTable | |
import pandas as pd | |
class DataFrameTableRenderer: | |
Renderers = ('matplotlib', 'pil') | |
def __init__(self, df: pd.DataFrame): | |
self.styled_df = df | |
self.dft = DataFrameTable() | |
self.html_code = self.styled_df.to_html() |
This file contains hidden or 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 { _decorator, Component, game } from 'cc'; | |
const { ccclass, property } = _decorator; | |
function timeScalerDT(useFixedDeltaTime){ | |
this._useFixedDeltaTime = useFixedDeltaTime; | |
if (useFixedDeltaTime) { | |
this._startTime = performance.now(); | |
return this.frameTime / 1000; |
This file contains hidden or 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 { _decorator, Component, Node, input, Input, EventKeyboard, KeyCode } from 'cc'; | |
import { GameStateMachine } from './GameStateMachine'; | |
import { GameEvents } from './GameStates'; | |
import xstate from "xstate/dist/xstate.js" | |
const interpret = xstate.interpret | |
const { ccclass, property } = _decorator; | |
@ccclass('GameHandler') | |
export class GameHandler extends Component { |
This file contains hidden or 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
<VirtualHost 127.0.0.1:443 _default_:443> | |
ServerName www.example.com | |
ServerAlias * | |
SSLEngine on | |
SSLCertificateFile "/opt/bitnami/apache/conf/bitnami/certs/server.crt" | |
SSLCertificateKeyFile "/opt/bitnami/apache/conf/bitnami/certs/server.key" | |
DocumentRoot /opt/bitnami/projects/sample | |
<Directory "/opt/bitnami/projects/sample"> | |
Options -Indexes +FollowSymLinks -MultiViews | |
AllowOverride All |
This file contains hidden or 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
cc.Class({ | |
extends: cc.Component, | |
properties: { | |
images: { | |
default: [], | |
type: cc.Texture2D | |
}, | |
refMat: { | |
default: null, |
This file contains hidden or 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
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-XXXXXXXXX-X', 'auto', { | |
'storage': 'none' , | |
'clientId': window.localStorage.getItem('ga_clientId') | |
}); | |
//Make GA use localStorage instead of cookies. | |
ga(function(tracker) { |