Skip to content

Instantly share code, notes, and snippets.

View ronaiza-cardoso's full-sized avatar
🏳️‍🌈

Ronaíza Cardoso ronaiza-cardoso

🏳️‍🌈
View GitHub Profile
const userData = {name: 'lubien'}
localStorage.setItem('user', JSON.stringify(userData))
const persisted = JSON.parse(localStorage.getItem('user'))
console.log(persisted)
@ronaiza-cardoso
ronaiza-cardoso / sf-list.md
Last active April 3, 2017 17:50
Lista de softwares
/*
* Count Negative Integers in Matrix
*/
M = [
[ -1, 3, 4, 1],
[ 2, 2, 4, 9],
[ 4, 5, -7, 9]
]
process.stdin.resume();
process.stdin.setEncoding('ascii');
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
process.stdin.on('data', function (data) {
input_stdin += data;
});
/**
* Show Me the Evens - Show me the Odds
* Diana is learning to count and she just learned the difference between odds and even numbers.
* She wants to have some fun, so she picks a random number.
* If that number is even, she decides to count all the even numbers up to it starting from 0 up to (but not including) the input.
* If not, she decides to count all the odd numbers up to that number starting from 1 (but not including) the input.
**/
function count(x) {
var numbers = [];
@ronaiza-cardoso
ronaiza-cardoso / index.html
Created March 6, 2017 21:32
Lição de casa - crie seu próprio render
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Render engine</title>
<style media="screen">
body {
background-color: #F3F3F3;
}
@ronaiza-cardoso
ronaiza-cardoso / curos.md
Created March 6, 2017 15:53
Cursos livres para quem está começando a programar
'use strict';
describe('isMobile module', () => {
let isMobile;
beforeEach(module('myinfo.isMobile'));
beforeEach(() => {
const userAgent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1';
module('myinfo.isMobile', $provide => {