Skip to content

Instantly share code, notes, and snippets.

View Victa's full-sized avatar
🏠
Working from home

Victor Victa

🏠
Working from home
View GitHub Profile
@Victa
Victa / i.html
Created May 27, 2012 15:46
display favicon in pseudo element
<a href=http://github.com>GitHub</a>
@Victa
Victa / gist:2730459
Created May 19, 2012 10:56
CSS3 Substring Matching Attribute Selectors
  • [att^=val] – the “begins with” selector
  • [att$=val] – the “ends with” selector
  • [att=val]* – the “contains” selector
@paulmillr
paulmillr / active.md
Last active May 7, 2025 14:35
Most active GitHub users (by contributions). https://paulmillr.com

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
if environment == :production
on_stylesheet_saved do |file|
# pretty logging output when making a gzipp'ed file
gz_file = Pathname.new("#{file}.gz").relative_path_from(Pathname.new(project_path))
Compass::Logger.new.record(:create, gz_file)
# This generates a file of the same name but ending in .gz
`gzip -f #{file}`
end
end
@FreakDev
FreakDev / gist:2309378
Created April 5, 2012 09:09 — forked from Victa/gist:2309363
fetch.sublime-settings
{
"files": {
"jQuery min": "http://code.jquery.com/jquery.min.js",
"Eric Meyer's reset": "http://meyerweb.com/eric/tools/css/reset/reset.css",
"normalize.css": "https://raw.github.com/necolas/normalize.css/master/normalize.css",
"Backbone.js": "http://documentcloud.github.com/backbone/backbone-min.js",
"Underscore.js": "http://documentcloud.github.com/underscore/underscore-min.js",
"Prefix free": "https://raw.github.com/LeaVerou/prefixfree/master/prefixfree.min.js",
"jQuery Transit": "https://raw.github.com/rstacruz/jquery.transit/master/jquery.transit.js",
"plinejs": "http://labs.svn.octaveoctave.com/mathias/plinejs/build/plinejs-0.4-n.js",
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@Integralist
Integralist / README.md
Created March 27, 2012 08:58 — forked from necolas/README.md
Experimenting with component-based HTML/CSS naming and patterns

Object-Oriented CSS

Below is how I am currently structuring my CSS to be more object-oriented (with a little assistence from Sass):

@Integralist
Integralist / Git Workflow.md
Created March 27, 2012 08:57
Git Workflow using an organisation account with Private repositories

#Overview - setting up our git workflow This set-up works for our team as we don't mind pushing directly to a development branch, but this wouldn't work for other companies as the development branch could potentially get broken fairly quickly and with multiple developers working on this singular branch would be awkward to locate issues and fix - but for a small team this seems to work fine.

##Initial User Set-Up The first developer to work on the new project will go through this process:

  • <github>
    Create repository on GitHub company account

  • ``