Skip to content

Instantly share code, notes, and snippets.

View Gaya's full-sized avatar
🌱
Coding on plants

Gaya Kessler Gaya

🌱
Coding on plants
View GitHub Profile
@Gaya
Gaya / jquery.placeholdereasy.js
Created March 19, 2012 15:00
Placeholder script jQuery
/*
* Short jQuery method of making placeholders for all the browsers.
*
* Use the following HTML markup to make this work:
* <input type="text" class="placeholder" value="Your name" data-standard="Your name" />
*/
$(".placeholder").focus(function () {
if ($(this).val() == $(this).attr("data-standard")) {
$(this).val("").addClass("active"); //Add class for other styling
@Gaya
Gaya / anchorhashcheck.js
Created November 8, 2012 16:04
Check anchors for href="#"
$("a[href=#]").each(function () {
console.log(this);
});
@Gaya
Gaya / class-symbolic-press.php
Last active June 23, 2021 18:39
Symbolic Press is a helper to help you use your WordPress plugins with Symbolic Links. Read more on my blog: http://www.gayadesign.com/diy/using-wordpress-plugins-as-symbolic-links/
<?php
/**
* Symbolic Press is a helper to help you use your WordPress plugins with Symbolic Links.
*
* Read more about it on:
* @link http://www.gayadesign.com/diy/using-wordpress-plugins-as-symbolic-links/
*/
class Symbolic_Press {
public $plugin_path;
public $plugin_name;
@Gaya
Gaya / (Build)Gruntfile.js
Last active January 17, 2017 05:23
Gruntfile.js file for concatenation and watch tasks.
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: "\n", //add a new line after each file
banner: "", //added before everything
footer: "" //added after everything
},
@Gaya
Gaya / SassMeister-input.scss
Created December 16, 2013 12:29
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
.michiel {
color: #ffffff;
}
.gaya {
@Gaya
Gaya / vatchecker.js
Last active December 31, 2015 12:29
var vatchecker = {
img: "",
req: "",
vat_checking: "",
init: function () {
vatchecker.vat_checking = $("#vat_checking .validated");
$("#vat_nr_check").keyup(function () {
var country = "BE";
@Gaya
Gaya / SelectBoxReset.scss
Last active December 31, 2015 17:39
Select Box Reset: Resets the looks of a <select> to a <input[type=text]>. Works in Chrome, Safari, Firefox, Opera and IE10+
select {
//disable webkit looks
-webkit-appearance: none;
//disable firefox looks
-moz-appearance: none;
text-indent: 0.01px;
text-overflow: "";
//misc
@Gaya
Gaya / filmDownload.md
Last active April 10, 2017 10:23
Hoe je een film download met torrents.

Hoe download ik een film via torrents?

Dit is een korte uitleg hoe je gemakkelijk een film kan downloaden via torrents. Omdat meerdere mensen mij de vraag stellen hoe ik dit doe heb ik er snel een pagina voor opgezet.

Wat heb je nodig?

  1. Een torrent client
  2. Website waar torrents beschikbaar zijn.
  3. Videospeler
@Gaya
Gaya / fill-container-floats.css
Last active January 4, 2016 03:09
Fills container height containing floating elements without setting `overflow: hidden`.
.container:after {
content: "";
clear: both;
display: table;
}
//or as a mixin
@mixin clearfix {
&:after {
content: "";
@Gaya
Gaya / Extendingcompoundselectors.scss
Created June 17, 2014 13:34
Extending compound selectors
//Is it possible to extend placeholder classes and their nested compound selectors?
%list {
margin: 12px 0;
&__item {
padding: 0 5px;
}
}
.main {