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
{-main = do | |
putStrLn "Qual é o seu primeiro nome?" | |
primeiroNome <- getLine | |
putStrLn "Qual é o seu segundo nome?" | |
segundoNome <- getLine | |
putStrLn ("Olá, " ++ primeiroNome ++ " " ++ segundoNome ++ "!") | |
-} |
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
;; User behaviors | |
;; ----------------------------- | |
;; Behaviors are stored as a set of diffs that are merged together | |
;; to create the final set of functionality that makes up Light Table. You can | |
;; modify these diffs to either add or subtract functionality. | |
;; | |
;; Behaviors are added to tags, objects with those tags then automatically gain | |
;; whatever logic the behavior imparts. To see a list of user-level behaviors, | |
;; start typing a word related to the functionality you want in between the square | |
;; brackets (e.g. "theme"). |
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
-- Update custom fields | |
UPDATE | |
`wp_postmeta` | |
SET | |
`meta_value` = REPLACE(`meta_value`, 'proto/', '') | |
WHERE | |
`post_id` > 0; | |
-- Update site URL |
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
var Apps, Nevada; | |
Nevada = Nevada || {}; | |
Nevada.apps = { | |
indexOf: function() { | |
if (!Array.prototype.indexOf) { | |
Array.prototype.indexOf = function(searchElement) { | |
'use strict'; | |
var k, len, n, t; |
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
echo FILE "$1" BINARY >> $1.cue | |
echo TRACK 01 MODE1/2352 >> $1.cue | |
echo INDEX 01 00:00:00 >> $1.cue | |
bchunk $1 $1.cue $1.iso | |
rm $1.cue |
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
# Testado no ZSH apenas | |
mkdir JPG && for i in $(ls *.pdf); do convert -monitor -crop 0x0+150+150 -gravity Center -density 300 -quality 90 -attenuate 40 -antialias -colorspace RGB -level 0%,100%,1.7 -crop -75-75 -resize 1060x1500 $i -bordercolor white -border 0 JPG/$i.jpg; done && cd JPG && for i in $(ls *.jpg); do convert -monitor -resize 1536x2067\! $i CONVERTIDO-$i.jpg; done && rm -rf ^*pdf.jpg.jpg && convert -monitor *.jpg revista-maua-e-regiao-ed.pdf |
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu" | |
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-i386-vagrant-disk1.box" | |
config.vm.synced_folder "/home/marcker/Copy/Vagrant/vagrant1", "/home/marcker/Copy/Vagrant/vagrant2" | |
config.vm.network :private_network, ip: "192.168.33.10" | |
end |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
print 'Cálculo do peso ideal.' | |
altura = input('Digite seu altura: ') | |
masculino = (altura ** 2) * (22.5) | |
feminino = (altura ** 2) * (21) | |
sexo = raw_input('Digite seu sexo: ') | |
if sexo == 'masculino': |
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
Show hidden characters
{ | |
"caret_style": "smooth", | |
"color_scheme": "Packages/Dayle Rees Color Schemes/LastNight.tmTheme", | |
"draw_white_space": "all", | |
"fold_buttons": false, | |
"font_face": "Envy Code R", | |
"font_options": | |
[ | |
"subpixel_antialias" | |
], |
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
encrypt: | |
tar cj FOLDER_OR_FILE | openssl enc -aes-256-cbc -e > FILE.tar.bz2.e | |
decrypt: | |
openssl aes-256-cbc -d -in FILE.tar.bz2.e -out FILE_DECRYPTED.tar.bz2 |