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
function cur_branch --description "Returns the name of the current git branch" | |
git rev-parse --abbrev-ref HEAD | |
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
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
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
var fs = require('fs') | |
path = '../Cardcaptor Sakura TV series A-S/' | |
fs.readdir(path, function(err,files) { | |
if(err) throw err; | |
files.forEach(function(file, index) { | |
replaced_file = file.replace(/\[........\]/, ''); | |
fs.rename(path + file, path + replaced_file, function(err) { | |
if(err) throw err; |
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
require 'ostruct' | |
require 'erb' | |
STEAM_PROFILE_ID = 'YOUR_STEAM_PROFILE_ID' # https://steamid.io/ | |
STEAM_API_KEY = 'YOUR_API_KEY' # http://steamcommunity.com/dev/apikey (enter '127.0.0.1' if you're unsure about your domain name) | |
OUTPUT_HTML = 'steam_achievements.html' | |
INPUT_ERB = 'steam_achievements.html.erb' | |
module Steam |
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
For an app I'm building for myself, I have to provide a privacy policy for | |
data retrieved from the API. | |
I will not release any data from the Uber API without explicit and clear | |
consent of the user. | |
This does not affect the user's statutory rights. The user is able to stop | |
using the service at any time, and can remove any data from the service | |
using the appropriate database management commands. |
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
1 0 | |
2 0 | |
3 0 | |
4 3 | |
5 4 | |
6 5 | |
7 5 | |
8 7 | |
9 8 | |
10 9 |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Ohana means family</title> | |
<!-- Bootstrap --> |
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
namespace :git do | |
desc 'Create a tag with release name and merge events since last tag' | |
# expects merge events with no-ff, as gitlab does by default | |
APP_NAME = '' | |
MERGE_EVENTS_SINCE_LAST_TAG = | |
`git log \`git describe --tags --abbrev=0\`..HEAD --merges --oneline` | |
def release_name |
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 check_cpf(cpf=nil) | |
return false if cpf.nil? | |
known_invalid_cpfs = %w{12345678909 11111111111 22222222222 33333333333 | |
44444444444 55555555555 66666666666 77777777777 | |
88888888888 99999999999 00000000000 } | |
cpf_digits = cpf.scan /[0-9]/ | |
if cpf_digits.length == 11 | |
unless known_invalid_cpfs.include?(cpf_digits.join) | |
cpf_digits = cpf_digits.map{|x| x.to_i} |
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
Show hidden characters
{ | |
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme", | |
"font_size": 13, | |
"highlight_line": true, | |
"match_brackets_angle": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"tab_size": 2, |