Skip to content

Instantly share code, notes, and snippets.

Finding a good learning rate

Marcos Pereira marcospgp

Finding a good learning rate
Block or report user

Report or block marcospgp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
marcospgp / .eslintrc.js
Created Apr 17, 2019
An example ESLint configuration for typescript to be used with the VSCode ESLint plugin. It's built with airbnb-base, prettier, and most well known ESLint plugins. It took a long time to configure so I thought it should be shared for others to reuse.
View .eslintrc.js
module.exports = {
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
"extends": [
marcospgp / Preferences.sublime-settings.js
Created Sep 1, 2016
User preferences for better readability on sublime text 3
View Preferences.sublime-settings.js
"atomic_save": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"font_size": 10,
"spacegray_tabs_xlarge": true,
"theme": "Material-Theme.sublime-theme",
marcospgp / mostCountedChar.c
Created Mar 11, 2016
most frequent char - C programming
View mostCountedChar.c
void questao16 () {
char input[256], countedChars[256]; // Input - string recebida ex.:"bieber"; countedChars - caracteres que já foram contados
int countedCharValues[256]; // Guarda o número de caracteres presentes na input, na mesma ordem de countedChars
// countedChars tem de ser uma string para podermos usar a função strchr nela
countedChars[0] = '\0';
printf("Please enter a string to get the most frequent character:\n");
marcospgp / ScrollingBackground.cs
Last active Aug 29, 2015
Unity 2D Horizontal Sprite Scroller
View ScrollingBackground.cs
using UnityEngine;
using System.Collections;
public class ScrollingBackground : MonoBehaviour {
// Here's what this script does, step by step:
// Duplicates the object
// Scrolls both at a given scrollSpeed
// When an object's full length has been scrolled, it is placed on the duplicate's original position
// Last step is repeated for both objects indefinitely
marcospgp / gist:a385916353714de5e00d
Created Feb 20, 2015
Sass constants for angular material
View gist:a385916353714de5e00d
// Google Material Design - Color Maps
$color-red: (
'50': #ffebee,
'100': #ffcdd2,
'200': #ef9a9a,
'300': #e57373,
'400': #ef5350,
'500': #f44336,
'600': #e53935,
You can’t perform that action at this time.