This file contains 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
#include <Arduino.h> | |
#define DEBOUNCE_INTERVAL 40 // This is in milliseconds | |
#define INPUT_PIN 2 | |
bool buttonPressed; | |
unsigned long lastChangeTimestamp; | |
void setup() { | |
lastChangeTimestamp = 0; |
This file contains 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
<%= bs_card do |card| %> | |
<%= card.header('Título do Card', header: { class: 'bg-primary' }, | |
title: { tag: 'h4', class: 'text-white' }) %> | |
<%= card.header(header: { class: 'bg-primary' }) do %> | |
<h4 class="text-white">Título do Card</h4> | |
<% end %> | |
<%= card.body do %> | |
<div> |
This file contains 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
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias "abrir-rails"="~/.open_tabs.sh" | |
alias "preparar-deploy"="~/preparar-deploy.sh" | |
alias gpm='git push origin master' | |
alias gphlog='git push origin homologacao' | |
alias gpp='git push origin producao' | |
alias gphfix='git push origin hotfix' |
This file contains 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
/** | |
* Plugin: "preserve_on_blur" (selectize.js) | |
* Copyright (c) 2016 Eric M. Klingensmith | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this | |
* file except in compliance with the License. You may obtain a copy of the License at: | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under | |
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF |
This file contains 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
if o.limit && o.offset | |
o = o.dup | |
limit = o.limit.expr | |
offset = o.offset | |
o.offset = nil | |
offset_bind = nil | |
collector << " | |
SELECT * FROM ( | |
SELECT raw_sql_.*, rownum raw_rnum_ |
This file contains 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 anosemestre? | |
!anosemestre.blank? ? true : false | |
end | |
def cargahoraria? | |
!numhorasdisc.blank? ? true : false | |
end |
This file contains 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
alias "preparar-deploy"="~/preparar-deploy.sh" | |
alias gpm='git push origin master' | |
alias gphlog='git push origin homologacao' | |
alias gpp='git push origin producao' | |
alias gphfix='git push origin hotfix' | |
alias gplm='git pull origin master' | |
alias gplhlog='git pull origin homologacao' | |
alias gplp='git pull origin producao' |
This file contains 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 | |
type_command() { | |
xdotool type --delay 50 --clearmodifiers "$1"; xdotool key Return | |
} | |
new_tab() { | |
sleep 0.5 | |
type_command "cd ~/workspace/$1" | |
sleep 0.5 |
This file contains 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
Sentença analizada corretamente. Sem erro. | |
└── PROG | |
├── MAIN | |
│ ├── class | |
│ ├── Factorial | |
│ ├── { | |
│ ├── public | |
│ ├── static | |
│ ├── void | |
│ ├── main |
This file contains 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
#include "sort.h" | |
void insertionSort(int *vector, int vectorSize) { | |
int currentNumber, prevNumber, index, subIndex; | |
// Para cada índice, posicioná-lo corretamente | |
for (index = 1; index < vectorSize; index++) { | |
subIndex = index; | |
currentNumber = vector[subIndex]; | |
prevNumber = vector[subIndex - 1]; |
NewerOlder