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
INSERT INTO `posts`(`id`, `title`, `body`, `created`, `modified`) | |
VALUES (1,'Just a title','Just a post', NOW(),NOW()); | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
set autoupdategist | |
set noautofocus | |
set nocncpcompletion | |
set smoothscroll | |
set hud | |
set noregex | |
set noinsertmappings | |
set typelinkhints | |
set defaultnewtabpage |
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/bash | |
# Add tex root information to the beginning of each file in directory | |
for file in src/chapters/*; do; echo $file; echo '% !TEX root =../qualificacao.tex' | cat - $file > temp && mv -f temp $file && rm -f temp; done |
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
ROOT = File.expand_path(File.dirname(__FILE__)) | |
WEBROOT = File.expand_path("../", Dir.pwd) | |
PRODUCTION = false | |
COMPASS = true | |
class Convert < Thor | |
desc "sass", "converts and puts sass in webroot" |
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/bash | |
#### | |
# To use this script I'd recommend installing RVM | |
##### | |
# Check dependencies | |
command -v gem >/dev/null 2>&1 || { echo >&2 "I require rubygems but it's not installed. Aborting."; exit 1; } | |
command -v git >/dev/null 2>&1 || { echo >&2 "I require git but it's not installed. Aborting."; exit 1; } |
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/bash | |
# If there is not a build folder, create it | |
[ ! -d "build" ] && mkdir build | |
# Write build files inside build folder | |
cmake . -B./build | |
# Build the project using 8 parallel threads | |
# Let the user input additional parameters like: |
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
<?php | |
namespace App\Test\Fixture; | |
use Cake\TestSuite\Fixture\TestFixture; | |
/** | |
* SchoolsFixture | |
* | |
*/ | |
class SchoolsFixture extends TestFixture |
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
//In config/bootstrap.php | |
/** | |
* Set the default locale. This controls how dates, number and currency is | |
* formatted and sets the default language to use for translations. | |
*/ | |
ini_set('intl.default_locale', 'pt_BR'); | |
// Part of my po file in: src/Locale/pt_BR | |
msgid "Actions" |
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 convert(in_file, out_file): | |
name = "" | |
for line in in_file: | |
line = line.strip() | |
print(line) | |
if line == "": | |
continue | |
if line.startswith('"'): | |
name = line.strip('"') | |
print("NAME:: " + name) |