Skip to content

Instantly share code, notes, and snippets.

View LuisReyes98's full-sized avatar
👨‍💻
Learning about AI

Luis Rogelio Reyes Hernández LuisReyes98

👨‍💻
Learning about AI
View GitHub Profile
@hmans
hmans / application.html.slim
Last active October 23, 2018 21:14
Rails 5.2 Application Layout using Slim
doctype html
html
head
title My Rails 5.2 App
= csrf_meta_tags
= csp_meta_tag
meta name="viewport" content="width=device-width, initial-scale=1.0"
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
@ba11b0y
ba11b0y / installing-postman.md
Last active August 31, 2023 19:21
Installing Postman on Ubuntu/Gnome

Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux

Although I highly recommend using a snap

sudo snap install postman

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz
@cutiko
cutiko / AlarmBroadcaster.java
Created February 13, 2016 22:49
How to set an alarm Android (AlarmManager)
public class AlarmBroadcaster extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
//Remember in the SetAlarm file we made an intent to this, this is way this work, otherwise you would have to put an action
//and here listen to the action, like in a normal receiver
createNotification(context);
}
public void createNotification(Context context) {
@rbmrclo
rbmrclo / gist:5900017
Last active October 18, 2019 15:43
Create a gemset per project
# I'm not using this anymore
#
# Assuming that you are already on your project directory.
# Step 1: rvm gemset create [name of gemset]
# Step 2: rvm --rvmrc [ruby version here]@[name of gemset] # Note: You can check your current ruby version by running "ruby -v" from your console.
# Step 3: Refresh your directory, you can do this by simply checking out of your directory via command: cd.. and going back to that directory again.
# Step 4: RVM will ask you a simple Yes, No, View, Cancel question. Press Y for yes.
# Step 5: You're done! Run bundle install.