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
Program cartas; | |
type | |
carta = record | |
nipe:string; | |
numero:integer; | |
prox:^carta; | |
end; | |
var | |
topo:^carta; | |
aux:carta; |
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
Program Pzim ; | |
type | |
carta = record | |
nipe: string; | |
numero: integer; | |
proximo: ^carta; | |
end; | |
var | |
pilha: ^carta; |
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
import { Directive, ElementRef, OnDestroy } from '@angular/core'; | |
import * as textMask from 'vanilla-text-mask/dist/vanillaTextMask.js'; | |
@Directive({ | |
selector: '[maskCurrencyDirective]' | |
}) | |
export class MaskCurrencyDirective implements OnDestroy { | |
mask = ['$', /\d+/] | |
maskedInputController; |
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
ExUnit.start() | |
defmodule ChopTest do | |
use ExUnit.Case, async: true | |
test "Should return guessed number" do | |
teste = Chop.guess(273, 1..1000) | |
assert teste == 273 | |
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
<div class="check-multisiteconstructionsite"> | |
<div> | |
<label class="label" for="checkbox_use">Obra Multisite</label> | |
<div class="space"></div> | |
<div class="switch"> | |
<input | |
type="checkbox" | |
class="switch-checkbox form-control" | |
id="checkbox-construction-site-type" | |
> |
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
<div | |
class="m-b-10 stant-commentsection" | |
data-target="pre-plannings--comments.jsCommentsContainer"> | |
<template data-target="pre-plannings--comments.jsCommentTemplate"> | |
<ul class="stant-comment"> | |
<li> | |
<p class="commentcontent"> | |
<b class="name"> | |
'%{person}' |
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
import Vue from 'vue' | |
import Vuetify, { | |
VCombobox | |
} from 'vuetify/lib' | |
export default function makeCombobox(repositoryName) { | |
return Vue.component('combobox', { | |
inject: [repositoryName], | |
components: { VCombobox }, | |
render (createElement) { |
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
# https://stackoverflow.com/questions/28670159/rspec-factory-girl-without-rails | |
# https://stackoverflow.com/questions/3661546/how-to-require-active-record-working-outside-of-rails | |
# https://stackoverflow.com/questions/1755665/get-names-of-all-files-from-a-folder-with-ruby | |
require 'active_record' | |
require 'pg' | |
ActiveRecord::Base.establish_connection( | |
adapter: 'postgresql', | |
database: 'stant_test', | |
username: 'stant', |
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
validateRules: { | |
number: { | |
presence: true, | |
message: 'O número do processo é obrigatório' | |
}, | |
processTypeId: { | |
presence: true, | |
message: 'É obrigatório preencher uma das opções' | |
}, | |
debt: { |
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
// HTML | |
<div class="inspection-imagecontainer"> | |
<img src="http://oneimage.com"/> | |
</div> | |
// CSS | |
.inspection-imagecontainer{ | |
display: inline-block; | |
width: 33%; |