This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package calculadora; | |
import java.io.*; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.*; | |
public class Calculadora extends JFrame{ | |
private JButton [] bOp = new JButton[4]; // Botões Operações | |
private JButton [] b = new JButton[10]; // Botões dos dígitos | |
private JButton bponto, bresult, blimpa, bexit; // Botão = e Quit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package GUI; | |
import java.util.Formatter; | |
import java.util.NoSuchElementException; | |
import java.util.FormatterClosedException; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
import javax.swing.*; | |
import java.io.File; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cs; | |
import javax.swing.*; | |
public class Bizuca extends JFrame { | |
public Bizuca () | |
{ | |
add(new Game()); | |
setTitle("Bizuca V 2.0"); | |
setDefaultCloseOperation(EXIT_ON_CLOSE); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header, video, img, svg, img ~ div, [data-asset-intro-image], h1, .tail-container { | |
display: none !important; | |
} | |
.app.two div, .app.two a { | |
color: rgba(255, 255, 255, 0) !important; | |
} | |
.message-out, .message-in, .highlight, #pane-side *, footer *, header ~ div, label, input { | |
color: black!important; | |
background-color: white !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Access Volume Monitor: https://agile-cliffs-23967.herokuapp.com/binance | |
// Copy and past on chrome console: | |
var audio = new Audio("/static/beep.wav"); | |
var audioCtx = new AudioContext(); | |
var source = audioCtx.createMediaElementSource(audio); | |
// create a gain node | |
var gainNode = audioCtx.createGain(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.5.10; | |
// File: openzeppelin-solidity/contracts/utils/Address.sol | |
/** | |
* @dev Collection of functions related to the address type, | |
*/ | |
library Address { | |
/** | |
* @dev Returns true if `account` is a contract. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Must | |
------ | |
iterm2 | |
zsh | |
hyperswitch (or https://alt-tab-macos.netlify.app/) | |
TextSniper | |
MonitorControl | |
vanilla | |
Jiggler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# libinput-gestures workspace helper | |
# Then add the commands in Gesture interface | |
# Left | |
# /home/username/workspace.sh -1 | |
# Right | |
# /home/username/workspace.sh 1 | |
# Up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Following CSS to wrap the tab-bar into multiple rows: */ | |
.tabs-and-actions-container > .monaco-scrollable-element { | |
height: auto !important; | |
} | |
.tabs-and-actions-container > .monaco-scrollable-element > .tabs-container { | |
height: auto !important; | |
flex-wrap: wrap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def flatten_hash(param, prefix=nil) | |
param.each_pair.reduce({}) do |a, (k, v)| | |
if v.is_a?(Array) | |
v = v.map.with_index { |x, i| [i, x] }.to_h | |
end | |
if v.is_a?(Hash) | |
a.merge(flatten_hash(v, "#{prefix}#{k}.")) | |
else | |
a.merge("#{prefix}#{k}".to_sym => v) |
OlderNewer