Skip to content

Instantly share code, notes, and snippets.

View hostelix's full-sized avatar
🤓
Work for money, Program for love ❤️

Israel Lugo hostelix

🤓
Work for money, Program for love ❤️
View GitHub Profile
@monmonja
monmonja / generate-ios.sh
Created July 16, 2019 13:16
generate ios from command line
# download this file to your project folder and excute
# chmod +x generate-ios.sh
# then run using
# ./generate-ios.sh
# flutter build defaults to --release
flutter build ios
# make folder, add .app then zip it and rename it to .ipa
mkdir -p Payload
@LoveMeWithoutAll
LoveMeWithoutAll / vue-file-uploader-to-firestore.vue
Last active September 23, 2020 09:27
vue-file-uploader-to-firestore
<template>
<div>
<v-btn
@click.native="selectFile"
v-if="!uploadEnd && !uploading">
Upload a cover image
<v-icon
right
aria-hidden="true">
add_a_photo
@crittermike
crittermike / App.js
Last active May 9, 2022 08:18
Using Google API (gapi) with React
/* global gapi */
const API_KEY = 'YOURAPIKEYHERE';
import React, { Component } from 'react';
class App extends Component {
loadYoutubeApi() {
const script = document.createElement("script");
package main
import (
"log"
"net/http"
"sync"
"github.com/garyburd/redigo/redis"
"github.com/gorilla/websocket"
uuid "github.com/satori/go.uuid"
@hfalucas
hfalucas / [1] main.js
Last active February 22, 2025 17:12
[Vue.js] Authentication and Authorization
/**
* Think of this "main.js" file as your application bootstrap.
*/
import Vue from 'vue'
import Resource from 'vue-resource'
import VueRouter from 'vue-router'
import routes from './routes'
import middleware from './middleware'
@sosedoff
sosedoff / 1_simple.go
Created July 16, 2016 18:45
Golang Custom Struct Tags Example
package main
import (
"fmt"
"reflect"
)
// Name of the struct tag used in examples
const tagName = "validate"

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@hostelix
hostelix / split.cpp
Created June 3, 2016 20:16
Funcion split para c++
typedef std::vector<char *> Vstring;
Vstring split(char *cadena_str, char *delimitador){
Vstring vector_tmp;
char *pch;
pch = strtok(cadena_str, delimitador);
while(pch != NULL){
@sdorra
sdorra / keys.go
Created April 17, 2016 19:31
Golang RSA Key Generation
/*
* Genarate rsa keys.
*/
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@elliotchance
elliotchance / server.go
Last active May 30, 2020 18:40
A simple server in Go
package main
import (
"bufio"
"fmt"
"net"
)
func check(err error, message string) {
if err != nil {