Skip to content

Instantly share code, notes, and snippets.

View vanita5's full-sized avatar

vanita5 vanita5

  • Freiburg, Germany
View GitHub Profile
@vanita5
vanita5 / onlySome.js
Created November 26, 2019 11:00
Array.prototype.onlySome - Determines whether some but not all members of an array satisfy the specified test.
/**
* Determines whether some but not all members of an array satisfy the specified test.
*
* @param callbackfn A function that accepts up to three arguments. The onlySome method calls
* Array.prototype.some and Array.prototype.every. Both call the callbackfn function for each
* element in the array until the callbackfn returns a value which is coercible to the Boolean value true
* or false respectively, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
* @returns {boolean}
@vanita5
vanita5 / index.html
Created September 9, 2016 07:11
CSS Locks
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>CSS Locks</title>
<style type="text/css">
#container {
width: 250px;

Keybase proof

I hereby claim:

  • I am vanita5 on github.
  • I am vanita5 (https://keybase.io/vanita5) on keybase.
  • I have a public key ASA3wiYhDvYkeXGVCeExEc8SdHBlX6BVTcZizmmuBwRGfwo

To claim this, I am signing this object:

@vanita5
vanita5 / download.php
Created November 24, 2014 21:12
PHP Download Script
<?php
##################################################################################################
##################################################################################################
## Description: PHP Download Controller ##
## Author: vanita5 <mail@vanita5.de> ##
## Date: Nov 2014 ##
## File: download.php ##
## Version: 1.0 ##
## ##
## ##