Skip to content

Instantly share code, notes, and snippets.

View Metrakit's full-sized avatar
🤘
Coding

Jordane Metrakit

🤘
Coding
View GitHub Profile
@Metrakit
Metrakit / gist:de937634346771eebe76
Created May 30, 2015 11:10
#1336 - Dynamic SQL is not allowed in stored function or trigger
DELIMITER |
DROP TRIGGER IF EXISTS `vote_update` |
CREATE TRIGGER `vote_update`
AFTER INSERT ON `votes`
FOR EACH ROW
BEGIN
SET @row_day = CONCAT(DAYNAME(NOW()), '_votes');
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
@Metrakit
Metrakit / gist:ac471806be94ad8343c4
Created April 25, 2015 11:41
Eager loading de la mort qui tue thanks to Laravel
<?php
// Master Model (Top.php)
class Top extends Eloquent {
public function topServer()
{
return $this->hasOne('TopServer');
}
@Metrakit
Metrakit / Linns-Desk.markdown
Created February 23, 2015 12:10
Linn's Desk

Linn's Desk

This pen shows a orange coffee mug filled with coffee. Next to the mug is some spilled coffee. Inside the mug are animated ripples.

This could be used as a loader, but since that is not my intention—not sure about the original designer intentions—I have not implemented any relevant code for that purpose. If you do however want to use this as a loader, please have a look at one of my other loaders for accessibility features; e.g. correct markup.

Thanks

CSS rendition of “My Desk” by the talented Linn Fritz. Please visit her portfolio for more excellent work.