Skip to content

Instantly share code, notes, and snippets.

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

Cristian Gutiérrez neomadara

🏠
Working from home
View GitHub Profile
@neomadara
neomadara / .zshrc
Created July 9, 2017 22:37 — forked from zanshin/.zshrc
My .zshrc file
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#export ZSH_THEME="robbyrussell"
export ZSH_THEME="zanshin"
@neomadara
neomadara / nico.zsh-theme
Created July 2, 2017 01:24 — forked from ntarocco/nico.zsh-theme
Yet another ZSH theme, simple and nice looking
# fork from AVIT ZSH Theme
PROMPT='
$(_user_host)${_current_dir}$(git_prompt_info)
$ '
PROMPT2='%{$fg[grey]%}◀%{$reset_color%} '
#RPROMPT='$(_vi_status)%{$(echotc UP 1)%}$(git_prompt_short_sha) $(_git_time_since_commit) ${_return_status} %T% %{$(echotc DO 1)%}'
RPROMPT='$(_vi_status)%{$(echotc UP 1)%}$(git_prompt_short_sha) ${_return_status} %T% %{$(echotc DO 1)%}'
@neomadara
neomadara / homebrew-python27.markdown
Created April 29, 2017 01:34 — forked from rcackerman/homebrew-python27.markdown
Installing/updating Python 2.7 with Homebrew

Installing Python 2.7 with Homebrew

For Mac 10.8.x

1) Install XCode 4.4

Get it from the App Store.

@neomadara
neomadara / app.js
Created December 28, 2016 02:48 — forked from jdnichollsc/app.js
Ionic Google OAuth Authentication, Firebase 3 and ngCordovaOauth plugin
angular.module('App', ['ionic', 'ngCordova', 'ngAnimate', 'ngCordovaOauth', 'firebase'])
.run(['$ionicPlatform',
'$rootScope',
'$firebaseAuth',
function($ionicPlatform, $rootScope, $firebaseAuth) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
var express = require('express');
var app = express();
one = [ "La cueca pá los chilenos",
"Si no le gustan las cuecas",
"Hoy es 18 de Septiembre",
"Yo también voy a la ramá",
"Tu creis que no se ná",
"Yo las bailo donde sea",
"No bailo tanto pero tengo otra gracia",
@neomadara
neomadara / routeCreator.js
Created September 7, 2016 15:29 — forked from jupazave/routeCreator.js
Mapa con ruta - store locator
var me = new Object();
var directionsService = new google.maps.DirectionsService();
var directionsDisplay;
function calcRoute() {
directionsDisplay = new google.maps.DirectionsRenderer();
directionsDisplay.setMap(mapaGlobal);
@neomadara
neomadara / googlemaps.js
Created September 7, 2016 15:20
Google Maps API sample
// npm i google-maps
import GoogleMapsLoader from 'google-maps';
GoogleMapsLoader.KEY = 'AIzaSyA9aGnRJDU1DRIXl5urposeU0p6qXr0LWM';
GoogleMapsLoader.LIBRARIES = [
// ルート描画に必要
'places'
];
@neomadara
neomadara / index.html
Created September 7, 2016 15:01
GoogleMapでルート検索のオプションを実験
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
Model.find({}, [], {'group': 'FIELD'}, function(err, logs) {
// code
});
@neomadara
neomadara / public-app.js
Last active May 23, 2016 17:12 — forked from jrmoran/public-app.js
AngularJS and Express, rendering ejs-locals partials
var app = angular.module('app', ['ngResource']);
app.config(function($locationProvider, $routeProvider) {
// $locationProvider.html5Mode(true);
$routeProvider
.when('/', { templateUrl: 'partials/index', controller: 'ctrl' })
.when('/about', { templateUrl: 'partials/about', controller: 'ctrl' })
.otherwise({redirectTo:'/'});
});