based on rage-quit support for bash
Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck
Also chmod a+x the flip command.
| class Memoria { | |
| var r = Dictionary<String,Int>() | |
| func suc( i:String ) -> Int { | |
| self.r[ i ] = ( self.r[ i ]? ) ? self.r[ i ]! + 1 : 1 | |
| return self.r[ i ]! | |
| } | |
| func pre( i:String ) -> Int { | |
| let ret = ( self.r[ i ]? ) ? self.r[ i ]! - 1 : -1 | |
| self.r[ i ] = ( self.r[ i ]? && self.r[ i ] > 0 ) ? self.r[ i ]! - 1: 0 | |
| return ret |
| var fns = UIFont.familyNames() | |
| for ( var iF = 0; iF < fns.count; ++iF ) { | |
| println( "Family name: " + ( fns[ iF ] as String ) ) | |
| var fontns = UIFont.fontNamesForFamilyName( ( fns[ iF ] as String ) ) | |
| for ( var iFN = 0; iFN < fontns.count; ++iFN ) { | |
| println( "\tFont name: " + ( fontns[ iFN ] as String ) ) | |
| } | |
| } |
| import sys | |
| import curses | |
| def sudoku(grid): | |
| global times | |
| global row_cache | |
| global col_cache | |
| times = 0 |
| # Instalar mis herramientas de terminal favoritas. | |
| # sudo apt-get update -qy | |
| # sudo apt-get upgrade -qy | |
| # sudo apt-get install vim git curl zsh git-core wget -qy | |
| # wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
| # chsh -s `which zsh` | |
| # Necesario para poder instalar el Toolkit de Nintendo DS | |
| sudo dpkg --add-architecture i386 |
| #include <iostream> | |
| #include <vector> | |
| #define INFINITY 9E18 | |
| #define IMPOSSIBLE "impossible" | |
| using namespace std; | |
| typedef vector<long long> vll; |
based on rage-quit support for bash
Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck
Also chmod a+x the flip command.
| # BEGIN protect xmlrpc.php | |
| location = /xmlrpc.php { | |
| deny all; | |
| } | |
| # END protect xmlrpc.php |
| #!/bin/bash | |
| buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE") | |
| buildNumber=$(($buildNumber + 1)) | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE" |
| cocos2d::Texture2D::TexParams texParams = { | |
| GL_NEAREST, // TextureMinFilter | |
| GL_NEAREST, // TextureMagFilter | |
| GL_CLAMP_TO_EDGE, // TextureWrapMode Horizontal | |
| GL_CLAMP_TO_EDGE // TextureWrapMode Vertical | |
| }; | |
| this->getTexture()->setTexParameters( texParams ); |
| #include "MawKit/KVDatabase.hpp" | |
| bool buyIfPossible( long long price ) | |
| { | |
| constexpr const char *moneyKey = "money"; | |
| if ( MK::KVDatabase::getLongValueForKey( moneyKey ) > price ) { | |
| MK::KVDatabase::decreaseLongValueForKey( moneyKey, price ); | |
| return true; | |
| } |