Skip to content

Instantly share code, notes, and snippets.

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

José Muñoz Ruiz josemunozr

🏠
Working from home
View GitHub Profile
@josemunozr
josemunozr / package.json
Created April 16, 2016 18:53 — forked from razpeitia/package.json
package.json para windows de tvify
{
"name": "tvify",
"description": "Una web app para seleccionar tus shows favoritos",
"version": "0.1.0",
"dependencies": {
"jquery": "^2.1.4",
"page": "^1.6.4",
"qs": "^6.0.0",
"serve": "^1.4.0"
},
@josemunozr
josemunozr / sticky_navigation.js
Created December 9, 2016 23:08
sticky_navigation.js
'use strict';
(function () {
function sticky_navigate() {
var window_top = $(window).scrollTop();
var home_top = $("#home").offset().top;
if (window_top > home_top) {
$(".nav").addClass('stick');
$(function() {
$('a[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top - 70
}, 1000);
return false;
@josemunozr
josemunozr / gulpfile.js
Created January 16, 2017 16:30
Example Sass
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function () {
return gulp.src('./public/sass/index.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./public/css'));
});
@josemunozr
josemunozr / webpack.config.js
Created January 18, 2017 01:02
Example configuration webpack with loaders [babel{es2015, react}]
module.exports ={
resolve: {
extensions: ['', '.js','.jsx']
},
context: __dirname,
entry: {
app: ['./src/app.jsx']
},
output: {
path: './build',
// File: Gulpfile.js
'use strict';
var gulp = require('gulp'),
webserver = require('gulp-webserver'),
connect = require('gulp-connect'),
stylus = require('gulp-stylus'),
nib = require('nib'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
@josemunozr
josemunozr / index.html
Created January 30, 2018 14:43
css-grid-example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Css Grid example</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
@josemunozr
josemunozr / sketch-never-ending.md
Created May 24, 2018 18:29 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@josemunozr
josemunozr / gist:4b08015708706c0d840494de630a24a2
Created October 15, 2018 03:45
issues errors react-native run-android
https://github.com/facebook/react-native/issues/21490#issuecomment-427240356
https://github.com/react-community/lottie-react-native/issues/269#issuecomment-403497462
@josemunozr
josemunozr / .babelrc
Created May 2, 2020 03:12
config async/await .babelrc and userEfect() react
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"esmodules": true
}
}
],