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
| <html> | |
| <body> | |
| <section class="left"> | |
| <article id="customers"> | |
| <h2>New Customers</h2> | |
| <table class="data"> | |
| <thead> | |
| <tr> | |
| <th>ID</th> | |
| <th>First Name</th> |
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
| #!/bin/sh | |
| # This program gets the power status (AC IN or BAT) | |
| # I2C interface with AXP209 | |
| # | |
| ####################################################################### | |
| # Copyright (c) 2014 by RzBo, Bellesserre, France | |
| # | |
| # Permission is granted to use the source code within this | |
| # file in whole or in part for any use, personal or commercial, | |
| # without restriction or limitation. |
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
| #!/bin/sh | |
| # This program gets the battery info from PMU | |
| # Voltage and current charging/discharging | |
| # | |
| # Nota : temperature can be more than real because of self heating | |
| ####################################################################### | |
| # Copyright (c) 2014 by RzBo, Bellesserre, France | |
| # | |
| # Permission is granted to use the source code within this | |
| # file in whole or in part for any use, personal or commercial, |
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
| <template> | |
| <div id="app" style="width: 100vw; height: 100vh;"> | |
| <baklava-editor :plugin="viewPlugin"></baklava-editor> | |
| </div> | |
| </template> | |
| <script lang="ts"> | |
| import { Component, Vue } from 'vue-property-decorator'; | |
| import { Editor, NodeBuilder } from "@baklavajs/core"; | |
| import { ViewPlugin } from "@baklavajs/plugin-renderer-vue"; |
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
| // | |
| // ContentView.swift | |
| // HonkHonk | |
| // | |
| // Created by Thomas Ricouard on 23/12/2020. | |
| // | |
| import SwiftUI | |
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
| Installing on a newer PC with GFI requires a little differen't partitioning. When you open up gparted or your favorite command line partition tool, you need to do the following: | |
| Create a partition scheme that is GPT. Then create the first partition as FAT32 and make it 200 mb or larger, set the flags to boot and esp. Then create your main partition and if you want, a home partition and swap partition. | |
| Next step is to partition the main os partition: | |
| mkfs.ext4 -L nixos /dev/sda1 | |
| Mount the partition: | |
| mount /dev/disk/by-label/nixos /mnt |
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
| using UnityEngine; | |
| using UnityEngine.UI; | |
| using System.Collections; | |
| using UnityEngine.SceneManagement; | |
| public class ScreenFader : MonoBehaviour | |
| { | |
| public Image FadeImg; | |
| public float fadeSpeed = 1.5f; | |
| public bool sceneStarting = true; |
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 django.http import HttpResponseRedirect | |
| from django.core.exceptions import PermissionDenied | |
| from django.urls import reverse | |
| from django.shortcuts import render | |
| from django.shortcuts import redirect | |
| def role_required(allowed_roles=[]): | |
| def decorator(view_func): | |
| def wrap(request, *args, **kwargs): |
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 datetime import timedelta | |
| from django.conf import settings | |
| from django.utils import timezone | |
| from rest_framework.authentication import TokenAuthentication | |
| from rest_framework.authtoken.models import Token | |
| from rest_framework.exceptions import AuthenticationFailed | |
| def is_token_expired(token): |
OlderNewer