Skip to content

Instantly share code, notes, and snippets.

@pburtchaell
pburtchaell / styles.css
Last active February 25, 2024 12:24
VH and VW units can cause issues on iOS devices. To overcome this, create media queries that target the width, height, and orientation of iOS devices.
/**
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units
*
* To overcome this, create media queries that target the width, height, and orientation of iOS devices.
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing
* the height of element `.foo` —which is a full width and height cover image.
*
* iOS Resolution Quick Reference: http://www.iosres.com/
*/
http://learn.ustwo.com/sketch-resources
http://weekplan.net/wp-content/uploads/2014/08/Getting-First-Things-Done.pdf
https://github.com/sindresorhus/pageres
http://blogs.atlassian.com/2014/08/jira-6-3-untangle-development/
http://www.timeful.com/
http://flexible.gs/
http://zurb.com/university
https://cdnify.com/blog/top-10-gulp-tasks-for-optimising-front-end-performance/
http://csswizardry.com/2014/08/advice-to-budding-front-end-developers/
https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins
@ckampfe
ckampfe / lingos.md
Created July 23, 2014 04:12
Languages

Languages

Early Languages (1960s and earlier)

  • COBOL: Probably the first language that looked "human readable". Invented with "business" in mind, ie, banks, corporations, etc. Still in use at many financial places as their installations are huge and would be expensive to replace/rewrite. COBOL programmers are very hard to find and very expensive.

  • Fortran: Developed at IBM in the 1950s, still incredibly popular today for economics calculations, math, finance, etc. Popular in academia for this reason.

  • C: Massively influential. probably the most famous programming language. Invented at Bell Labs in the 60s. Still in incredibly wide use for such applications as operating systems, microcontrollers, or anything where speed is a necessary. Very fast, but easy to write buggy code. Runs on almost any hardware ever made. It's syntax and idioms live on in Java, JavaScript, C#, C++

Middle-aged languages (1970s & 1980s)

@gersande
gersande / unity3tutoriallist.md
Last active August 5, 2020 01:15
Unity Tutorial List for 2D Games
@diogomoretti
diogomoretti / fonts.styl
Last active November 20, 2019 06:37
Stylus mixin @font-face
// Fonts mixin
font-url(file)
return '../fonts/' + file
webfont(family, file, hack-chrome-windows = false, weight = 'normal')
@font-face
font-family family
src url(font-url(file + '.eot'))
src url(font-url(file + '.eot?#iefix')) format('embedded-opentype'),
url(font-url(file + '.woff')) format('woff'),
@myguidingstar-zz
myguidingstar-zz / angular.min.js
Last active February 11, 2020 11:09
Custom radio and checkbox styles in angularjs http://plnkr.co/edit/gist:5469101?p=preview
/*
AngularJS v1.1.4
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/
(function(M,V,s){'use strict';function gc(){var b=M.angular;M.angular=hc;return b}function o(b,a,c){var d;if(b)if(I(b))for(d in b)d!="prototype"&&d!="length"&&d!="name"&&b.hasOwnProperty(d)&&a.call(c,b[d],d);else if(b.forEach&&b.forEach!==o)b.forEach(a,c);else if(!b||typeof b.length!=="number"?0:typeof b.hasOwnProperty!="function"&&typeof b.constructor!="function"||b instanceof P||ca&&b instanceof ca||Da.call(b)!=="[object Object]"||typeof b.callee==="function")for(d=0;d<b.length;d++)a.call(c,b[d],
d);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d);return b}function rb(b){var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push(c);return a.sort()}function ic(b,a,c){for(var d=rb(b),e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}function sb(b){return function(a,c){b(c,a)}}function Ea(){for(var b=Z.length,a;b;){b--;a=Z[b].charCodeAt(0);if(a==57)return Z[b]="A",Z.join("");if(a==90)Z[b]="0";else return Z[b]=String.fromCharCod
@chrisjlee
chrisjlee / drupal-views-share-global-text-field
Last active April 23, 2024 04:07
share url's for facebook, twitter, pinterest with just get variables
<ul>
<li class="share-text">Share this>/li>
<li class="share-tw"><a href="http://twitter.com/share?text=[title]"><span></span></a></li>
<li class="share-fb"><a href="http://www.facebook.com/sharer.php?u=/node/[nid]&p=[title]"><span></span></a></li>
<li class="share-pinterest"><a href="http://pinterest.com/pin/create/button/?url=/node/[nid]&description=[title]"><span></span></a></li>
</ul>
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@Zirak
Zirak / gist:3086939
Last active August 27, 2022 22:01
xhr for dummies

So, you want to send a motherfucking XMLHttpRequest (XHR, or commonly and falsly known as AJAX.) Too bad, just ran out of motherfucking XMLHttpRequests; but I still have one regular. XHR is not magic. It does not autofuckinmagically send things the way you want them do be sent. It does not do the thinking for you. It just sends an Http Request.

You get a hold on such a prime beast like this:

@harthur
harthur / snippet.md
Created June 18, 2012 22:12
console.log() key binding for Sublime Text

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file:

[
    { "keys": ["super+shift+l"],
      "command": "insert_snippet",
      "args": {
        "contents": "console.log(${1:}$SELECTION);${0}"
      }
 }