Skip to content

Instantly share code, notes, and snippets.

View asathoor's full-sized avatar
:octocat:
Words! Words! Words! (Shakespeare)

Per Thykjaer Jensen (PETJ) asathoor

:octocat:
Words! Words! Words! (Shakespeare)
View GitHub Profile
@asathoor
asathoor / README.md
Last active November 24, 2020 05:53
LIst images on SD cards (yeah: cardS)

Carolus Count Files

Idea to a service: List the number of files in a directory named DSC1A*, DSC2A* etc. by a loop. Sometimes, however, the number of files and the filenames may not be in order. To check that try something along these lined:

ls -l | tail -n1 # n = the number of files to be shown
<style>
/* jeg lægger lige styles her ... så er en fil nok.
Du skal selvfølgelig have dine styles i en separat fil ... */
/* flexbox layout */
.kvalitet {
display: flex;
justify-content: space-between;
}
/* css Zen Garden default style v1.02 */
/* css released under Creative Commons License - http://creativecommons.org/licenses/by-nc-sa/1.0/ */
/* This file based on 'Tranquille' by Dave Shea */
/* You may use this file as a foundation for any new work, but you may find it easier to start from scratch. */
/* Not all elements are defined in this file, so you'll most likely want to refer to the xhtml as well. */
/* Your images should be linked as if the CSS file sits in the same folder as the images. ie. no paths. */
@asathoor
asathoor / formNext.html
Created October 21, 2019 15:49
A form with a next option (jQuery)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
@asathoor
asathoor / README.md
Created October 2, 2019 11:00
Bootstrap Accordion Sample from https://jqueryui.com/accordion/
<?php
/**
* Template Name: Bootstrap Three Widgets Pg
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
@asathoor
asathoor / README.md
Last active September 30, 2019 07:32
@asathoor
asathoor / jqueryClassSelect
Created March 11, 2019 09:36
jquery y-class
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function(){ // dom load check
// hat click detector
$("#hat").click(function(){
$('#evilla').toggle();
@asathoor
asathoor / README.md
Last active February 18, 2019 11:54
Twentytwendy - jquery plugin.

Twentytwenty

Husk at inkludere disse script via jeres js/ directory (se linje 34 - 35):

    <!-- HUSK: disse filer skal ligge i js/ directoryet -->
    <script src="js/jquery.event.move.js"></script>
 
@asathoor
asathoor / ghost.html
Created January 29, 2019 10:16
CSS animation start file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Spøgelser og knirkende gulve</title>
<style>
body {