Skip to content
View depoulo's full-sized avatar

Block or report depoulo

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. CSS-only multi-line ellipsis with ge... CSS-only multi-line ellipsis with generated content. License: http://www.wtfpl.net/txt/copying/
    1
    @import "compass/css3/images";
    2
    
                  
    3
    // CSS-only multi-line ellipsis with generated content
    4
    // yields `position:relative`, so remember to declare an eventual `position:absolute/fixed` *after* including this mixin
    5
    @mixin limitLines(
  2. Get random gif from Giphy - might be... Get random gif from Giphy - might be against their TOS, please check yourself and use reasonably - I use it for our continuos integration status monitor, which of course is almost never red ;)
    1
    // get random image from Giphy
    2
    function getRandomGif($topic = 'fail') {
    3
        $data = file_get_contents("http://giphy.com/search/$topic");
    4
        preg_match_all('@href="/gifs/(.*?)"@', $data, &$matches);
    5
        $gifId = $matches[1][array_rand($matches[1])];
  3. MySQL query logging MySQL query logging
    1
    set global general_log = 1;
    2
    set global log_output = 'table';
    3
    --
    4
    select event_time, substring(argument,1,100) from mysql.general_log where event_time > time('08:58');
    5
    --
  4. Add CSS rules quickly from the brows... Add CSS rules quickly from the browser JS console. Idea taken from http://davidwalsh.name/add-rules-stylesheets
    1
    (() => {
    2
      var style = document.createElement("style");
    3
      style.appendChild(document.createTextNode(""));
    4
      document.head.appendChild(style);
    5
      var rules = prompt('Paste CSS rules here');
  5. Create 100kB of random text Create 100kB of random text
    1
    # Windows (Git bash)
    2
    dd if=/dev/urandom of=tmp bs=100kB count=1 && base64 tmp > big && rm tmp && cat big > /dev/clipboard && rm big
    3
    # Mac OS
    4
    dd if=/dev/urandom of=tmp bs=100kB count=1 && base64 tmp > big && rm tmp && cat big | pbcopy && rm big
  6. ePages-de/sort-phraseapp-locales ePages-de/sort-phraseapp-locales Public

    JavaScript