Skip to content

Instantly share code, notes, and snippets.

View helmutgranda's full-sized avatar

Helmut Granda helmutgranda

View GitHub Profile
@helmutgranda
helmutgranda / check_phone.rs
Created January 23, 2020 22:00
Asking for phone number until entered.
use std::io;
use std::process;
fn main() {
println!("Please enter your name: ");
let mut name_input = String::new();
io::stdin().read_line(&mut name_input).unwrap();
@helmutgranda
helmutgranda / gatsby-config.js
Created April 3, 2019 19:15
Working sample MDX
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@gatsbyjs`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
view.backgroundColor = UIColor.lightGrayColor()
let vLayout = VerticalLayout(width: view.frame.width)
vLayout.backgroundColor = UIColor.cyanColor()
view.addSubview(vLayout)
import UIKit
class VerticalLayout: UIView {
var yOffsets: [CGFloat] = []
init(width: CGFloat) {
super.init(frame: CGRectMake(0, 0, width, 0))
}
@helmutgranda
helmutgranda / config.json
Last active August 29, 2015 14:06
Test Config
{
"vars": {
"@dark-10": "#ccc",
"@gray-darker": "lighten(#fff, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
@helmutgranda
helmutgranda / config.json
Last active August 29, 2015 14:05
Custom BS download
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@helmutgranda
helmutgranda / config.json
Last active August 29, 2015 14:05
Bootstrap configuration file
{
"vars": {
"@gray-darker": "lighten(#fff, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@helmutgranda
helmutgranda / haoIt.markdown
Created August 22, 2014 21:56
A Pen by Helmut Granda.
@helmutgranda
helmutgranda / .vimrc
Created August 15, 2014 16:05
reset of vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
set guifont=Inconsolata-dz\ for\ Powerline:h15
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8
@helmutgranda
helmutgranda / perforcecommands.md
Created March 14, 2014 16:06
Perfoce useful commands

#Perforce

###Get a list of files included in a change list: p4 files @={CHANGE_LIST_NUMBER}

####Example p4 files @=123456