Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Capi Etheriel barraponto

🏠
Working from home
Block or report user

Report or block barraponto

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
View chatbot.sql
CREATE TABLE problemas (
id INT AUTO_INCREMENT PRIMARY KEY,
problema_1 VARCHAR(100) NOT NULL,
problema_2 VARCHAR(100),
problema_3 VARCHAR(100),
problema_4 VARCHAR(100),
problema_5 VARCHAR(100),
problema_6 VARCHAR(100),
problema_7 VARCHAR(100),
problema_8 VARCHAR(100),
View preprova.sql
/* exercicios 1 e 2 */
CREATE TABLE clientes (
id INT AUTO_INCREMENT PRIMARY KEY,
nome VARCHAR(64) NOT NULL,
endereco VARCHAR(256),
cidade VARCHAR(128),
telefone VARCHAR(13) NOT NULL,
rg VARCHAR(13),
inscricao DATE NOT NULL,
fidelidade INT DEFAULT 0
View ViewsRenderedSelection.php
<?php
namespace Drupal\views_selection_rendered_widget\Plugin\EntityReferenceSelection;
use Drupal\views\Plugin\EntityReferenceSelection\ViewsSelection;
/**
* Plugin implementation of the 'selection' entity_reference.
*
View gist:f7eb80dea1dd96821baf7f6c296883f9
1. "category"
Type of data: Text
Contains null values: False
Unique values: 159
Longest value: 18 characters
Most common values: Product Design (3531x)
Tabletop Games (3179x)
Shorts (3154x)
Documentary (3047x)
View RouteSubscriber.php
<?php
namespace Drupal\mail_login_rpc\Routing;
use Drupal\Core\Routing\RouteSubscriberBase;
use Symfony\Component\Routing\RouteCollection;
/**
* Swaps default rpc login controller with ours.
*/
View cycle_keyboard_brightness.py
'''Cycles keyboard brightness levels using DBus.'''
import dbus
def main():
bus = dbus.SystemBus()
proxy = bus.get_object('org.freedesktop.UPower',
'/org/freedesktop/UPower/KbdBacklight')
interface = dbus.Interface(proxy, 'org.freedesktop.UPower.KbdBacklight')
current_level = interface.GetBrightness()
View server.js
const { Server } = require('boardgame.io/server');
const { TicTacToe } = require('gamux-tictactoe');
const logger = require('koa-logger');
const cors = require('koa-cors');
const server = Server({ games: [ TicTacToe ] });
server.app.use(logger());
server.app.use(cors());
View .eslintrc.json
{
"env": { "browser": true },
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:jest/recommended"
],
"overrides": [
{
View codigo.sh
#!/bin/bash -
set -o nounset # Treat unset variables as an error
for filename in *.jpg; do
curl -H "X-API-Key: ${API}" -F "image_file=@./${filename}" -f https://api.remove.bg/v1.0/removebg -o "nobg_${filename}.png";
done
View index.js
/* eslint-disable */
import Phaser from 'phaser';
class Breakout extends Phaser.Scene {
constructor() {
super({ key: 'breakout' });
}
preload() {
this.load.atlas('assets', 'static/assets/breakout.png', 'static/assets/breakout.json');
You can’t perform that action at this time.