Skip to content

Instantly share code, notes, and snippets.

View StanleySathler's full-sized avatar
👽

Stanley Sathler StanleySathler

👽
View GitHub Profile
@StanleySathler
StanleySathler / readme.md
Created November 25, 2021 18:12
VisualG - Referência

VisualG - Referência

Plano de ensino

  1. Comandos de saída
  2. Variáveis e comandos de entrada
  3. Condicionais

Referência

We can't make this file beautiful and searchable because it's too large.
show_id,type,title,director,cast,country,date_added,release_year,rating,duration,listed_in,description
81145628,Movie,Norm of the North: King Sized Adventure,"Richard Finn, Tim Maltby","Alan Marriott, Andrew Toth, Brian Dobson, Cole Howard, Jennifer Cameron, Jonathan Holmes, Lee Tockar, Lisa Durupt, Maya Kay, Michael Dobson","United States, India, South Korea, China","September 9, 2019",2019,TV-PG,90 min,"Children & Family Movies, Comedies","Before planning an awesome wedding for his grandfather, a polar bear king must take back a stolen artifact from an evil archaeologist first."
80117401,Movie,Jandino: Whatever it Takes,,Jandino Asporaat,United Kingdom,"September 9, 2016",2016,TV-MA,94 min,Stand-Up Comedy,"Jandino Asporaat riffs on the challenges of raising kids and serenades the audience with a rousing rendition of ""Sex on Fire"" in his comedy show."
70234439,TV Show,Transformers Prime,,"Peter Cullen, Sumalee Montano, Frank Welker, Jeffrey Combs, Kevin Michael Richardson, Tania Gunadi, Josh Keaton, Steve
<div class="container">
<aside class="toolbar">.toolbar</aside>
<section class="preview">.preview</section>
<section class="timeline">.timeline</section>
</div>
@StanleySathler
StanleySathler / move-to-next-window
Created July 17, 2020 23:01
Move active window to the next monitor
#!/bin/sh
#
# Source: https://makandracards.com/makandra/12447-how-to-move-a-window-to-the-next-monitor-on-xfce-mate-and-other-x-window-managers
#
# Move the current window to the next monitor.
#
# Only works on a horizontal monitor setup.
# Also works only on one X screen (which is the most common case).
#
# Props to
#!/bin/bash
echo "Removing eventual apt locks..."
sudo rm /var/lib/dpkg/lock-frontend ; sudo rm /var/cache/apt/archives/lock ;
echo
echo "Updating repositories..."
sudo apt-get update
echo "Update successfully!"
echo
@StanleySathler
StanleySathler / machine.js
Last active April 20, 2020 22:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
#!/bin/bash
menu_option=1
user=""
pass=""
# Keep asking for login until it is correct
while [ "$user" != "admin" ] && [ "$pass" != "admin" ]
do
echo "User: "
section .data
msg db "Welcome!", 10 ; 10 is ASCII code for the new line
section .text
global _start
_start:
mov rax, 1 ; "1" is the %rax value for "sys_write"
mov rdi, 1
mov rsi, msg
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
/**
* Creates the component that will be tested with
* Jest and Enzyme
*/
class MessageDisplay extends Component {
constructor(props) {
super(props);
/**
* Aqui voce tem uma variavel global, ou seja, uma variavel
* declarada no mais alto escopo disponivel. Isso quer dizer
* que ela pode ser acessada por qualquer funcao a qualquer
* momento.
*/
var todasCampanhas = [];
/**
* Cria um change listener para o select. Esse callback