- Appetizer - tell your audience what you’ll be talking about
- Entree - the actual content
- Dessert - summarize
- Take away - something the audience can go home with
- Ask a question
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
| <html><head> | |
| <!-- saved from url=(0049)http://www.graycary-etraining.com/main/tetris.htm --><title>Tetris</title> | |
| <meta http-equiv="Content-Type" content="text/html; | |
| charset=windows-1252"> | |
| <script language="JavaScript"> | |
| <!-- | |
| // Global arrays |
| # To test, type this on the command line: | |
| # rake -T | grep foo | |
| # To invoke: | |
| # rake foo:first_task[1221] | |
| namespace :foo do | |
| desc 'Skeleton of a rake task' | |
| task :first_task, [:num] => :environment do |_, args| | |
| abort_reason = false |
| [user] | |
| name = | |
| email = | |
| [core] | |
| excludesfile = /Users/kai/.gitignore_global | |
| editor = vim | |
| [alias] | |
| co = checkout | |
| ci = commit | |
| st = status |
| alias path='ruby -e "puts ENV[%{PATH}].gsub(/:/,%{\n}) # pretty print the PATH"' | |
| alias free_space='df -H && echo' | |
| alias gitjk="history 10 | tail -r | gitjk_cmd" | |
| alias chess='wine "/Users/kai/.wine/drive_c/Aquarium 2015"/Aquarium.exe' | |
| alias chess2='wine "/Users/kai/.wine/drive_c/Program Files/LucasChess"/Lucas.exe' | |
| alias chess3='wine ~/bin/Fritz_Chess_Benchmark.exe' | |
| alias chess4='/Applications/DOSBox.app/Contents/MacOS/DOSBox ~/.wine/drive_c/cm2100/2100.exe' # use alt-enter for full screen and ctrl-F10 for mouse capture/release | |
| alias chess4_5='vim /Users/kai/Library/Preferences/DOSBox\ 0.74\ Preferences' | |
| alias chess5='wine /Users/kai/.wine/drive_c/Arena/Arena.exe &' | |
| alias chess6='/Applications/XBoard.app/Contents/MacOS/XBoard' |
| FRUTALES | |
| 97 Aguacate | |
| 11 Aguacate con injerto | |
| 3 Anona | |
| 4 Cacao | |
| 4 Caimito | |
| 5 Canela | |
| 100 Cocos | |
| 7 Greyfus |
| # https://www.codewars.com/kata/square-root-without-using-library-math | |
| # the challenge stipulates: don't require any libs, don't use ** operator (exponentiation) | |
| # the challenge also says all inputs will already be perfect squares of integers | |
| # This code works for very large integers as well as small ones | |
| def square_root_me(num) | |
| start = num.to_s(2); start = start[0,(start.length/2)].to_i(2) | |
| retval = start | |
| for i in 0..10000 do |
| # skyportal-experiment | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[0;33m\]\u\[\033[1;37m\]@\[\033[0;34m\]\[\e[106m\]skyportal-experiment\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| # skyportal-staging | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u\[\033[1;37m\]\[\e[100m\]@\[\033[0;34m\]\[\e[102m\]skyportal-staging\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| # skyportal-production | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[0;33m\]\u\[\033[1;37m\]@\[\033[0;34m\]\[\e[106m\]skyportal-experiment\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| # local machine |
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: disable-transparent-hugepages | |
| # Required-Start: $local_fs | |
| # Required-Stop: | |
| # X-Start-Before: mongod mongodb-mms-automation-agent | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Disable Linux transparent huge pages | |
| # Description: Disable Linux transparent huge pages, to improve |
| [Unit] | |
| Description=High-performance, schema-free document-oriented database | |
| After=network.target | |
| [Service] | |
| User=mongodb | |
| ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf | |
| [Install] | |
| WantedBy=multi-user.target |