Skip to content

Instantly share code, notes, and snippets.

View rubiadias's full-sized avatar

Rubia Dias rubiadias

  • Curitiba - Brasil
View GitHub Profile
anonymous
anonymous / exemplo.html
Created June 24, 2014 01:07
classe pra slideshow
<div id="slider1">
<ul class="slideshow"></ul>
<a href="#" class="prev">Anterior</a>
<a href="#" class="next">Próximo</a>
<div class="page"></div>
</div>
<div id="slider2">
<ul class="slideshow"></ul>
@dbwhddn10
dbwhddn10 / SassMeister-input.scss
Created July 26, 2014 03:31
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
// -----------------------------------------------------------------------------
// Introduction
// -----------------------------------------------------------------------------
// Here is hacky and experimental solution for cross-scopes extends
@EdEichman
EdEichman / zopim_defer.js
Last active March 30, 2025 19:50
Defer Loading Zopim until page is loaded (to avoid long load delay), based on article http://www.feedthebot.com/pagespeed/defer-loading-javascript.html
//basic zopim widget code, from their site
window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
_.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
$.src='//v2.zopim.com/?26Smu9lv0NXQEOOg8IAZrMPh9yQstAcV';z.t=+new Date;$.
type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
//make sure zopim does not show till we know we have department agents
var intial_zopim_hiding_done = false;
@jchild3rs
jchild3rs / gist:470be49a4bc4caf3ca8a
Last active April 8, 2020 15:54
Hologram Gulp Plugin
/*
// Usage:
gulp.task('docs', function(cb) {
gulp.src('path/to/your/src')
.pipe(hologram(cb));
});
*/
var gulp = require('gulp'),
notify = require('gulp-notify'),
@cvrebert
cvrebert / css_regression_testing.md
Last active March 30, 2025 19:49
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
@redguardtoo
redguardtoo / cygwin.bat
Last active September 5, 2022 06:22
cygwin.bat
@echo off
REM shamelessly copied from git://github.com/justsoso8/dotfile.git
REM mintty installed which supports chinese
REM =======================================
@echo off
rem find cygwin roo directory one by one
rem disk c -> disk d -> disk e
:CYGWIN_C
if not exist c:\cygwin64 goto CYGWIN_D
@needim
needim / mediaqueries.css
Last active April 4, 2024 23:23
Device Specific CSS Media Queries Collection
/*
Based on:
1. http://stephen.io/mediaqueries
2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* iPhone X in portrait & landscape */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 812px)
@mturnwall
mturnwall / font_face_generator.scss
Last active March 30, 2025 19:49
Sass Font-Face Generator Mixins
// ----
// libsass (v3.2.5)
// ----
////
/// Font-Face Generator (FF)
/// @author Hugo Giraudel, Michael Turnwall
////
/// Path to the location of the font files
@cortesben
cortesben / Angular-cli.md
Last active July 31, 2024 18:45
Bash commands and Angular CLI commands

#Angular-cli oh shit!

https://cli.angular.io/reference.pdf

Commands Description
ng help returns all commands with flags they can take as a param
ng new [project-name] create a brand new angular project with live server BANG!
ng init grabs name from folder that already exist
@threepointone
threepointone / hash.js
Created February 24, 2016 11:34
immutable hashmaps for dummies
// murmurhash2 via https://gist.github.com/raycmorgan/588423
export default function doHash(str, seed) {
var m = 0x5bd1e995;
var r = 24;
var h = seed ^ str.length;
var length = str.length;
var currentIndex = 0;
while (length >= 4) {