Skip to content

Instantly share code, notes, and snippets.

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

Jason Melgoza jasonmelgoza

🏠
Working from home
View GitHub Profile
@jrmoran
jrmoran / app.js
Created October 23, 2012 12:50
AngularJS - basic async request
var App = angular.module('App', []);
App.controller('TodoCtrl', function($scope, $http) {
$http.get('todos.json')
.then(function(res){
$scope.todos = res.data;
});
});
@snowman-repos
snowman-repos / Word wrap
Last active July 12, 2017 21:34
SASS: Word Wrap
// Word Wrapping
@mixin word-wrap() {
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
.word-wrap {
@adamvduke
adamvduke / ig_downloader.rb
Created October 3, 2012 17:59
Download all the photos you've liked on instagram
require 'restclient'
require 'json'
require 'digest'
class IGDownloader
def initialize(output_path)
@base_output_path = output_path
end
@hs0ucy
hs0ucy / media-queries-samples.css
Created September 21, 2012 17:48
Media Queries for Standard Devices
/*
* From css-tricks.com
* http://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
@dannygarcia
dannygarcia / grunt.js
Created September 20, 2012 02:39
Sample grunt-jekyll grunt.js
// Sample grunt-jekyll grunt.js file
// https://github.com/dannygarcia/grunt-jekyll
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jekyll: {
@ahdezm
ahdezm / dabblet.css
Last active May 17, 2021 11:31
CSS Animated Repeating Gradient
/**
* CSS Animated Repeating Gradient
*/
body {
background: repeating-linear-gradient(-45deg,red,red 20px,blue 20px,blue 40px);
background-size:56px 56px;/* This is unique for this background, need to find a pattern and develop a formula */
background-position-x:0%;
-webkit-animation:'slide' 20s infinite linear forwards;
}
@jasonmelgoza
jasonmelgoza / General CSS formatting
Created August 22, 2012 19:22
General CSS and SCSS Comment formatting
# Normal CSS
/*
Filename
Description of the file and it's contents (sometimes followed by a table of contents)
*/
/* Section heading
-------------------------------------------------- */
@jasonmelgoza
jasonmelgoza / block.tpl.php
Created August 14, 2012 05:23 — forked from pixelwhip/block.tpl.php
Modular Stylesheets - Design 4 Drupal
<?php
/**
* @file
* Default theme implementation to display a block.
*
* Available variables:
* - $block->subject: Block title.
* - $content: Block content.
* - $block->module: Module that generated the block.
@tuzz
tuzz / github.css
Last active November 26, 2025 21:18
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@jasonmelgoza
jasonmelgoza / style.css
Created August 7, 2012 18:39
CSS3 Vignette
.img_container {
position: relative;
display: inline-block;
max-width: 900px;
-webkit-box-shadow: 0px 2px 5px rgba( 0, 0, 0, 0.4 );
-moz-box-shadow: 0px 2px 5px rgba( 0,0,0,0.4 );
-o-box-shadow: 0px 2px 5px rgba( 0,0,0,0.4 );
box-shadow: 0px 2px 5px rgba( 0, 0, 0, 0.4 );
line-height: 0;
margin-bottom: 50px;