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
| for (int x = 0; x < 6;x+=3 ) | |
| { | |
| if (Grid[x+1] == Grid[x+2] && Grid [x+2] == 2 && Grid[x+3] == 0){ | |
| Grid[x+3] = 2; | |
| break; | |
| } |
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
| : | |
| 1. Check if there is a tile that you can win in 1 move | |
| if there is no such tile: | |
| 2. Check if there is a tile that your opponent can win in 1 move | |
| if there is no such tile: | |
| 3. Check if there is a tile that can make two tiles apply to the rule #1 | |
| if there is no such tile: | |
| 4. Check if there is a tile that your opponent can make two tiles apply to the rule #2 | |
| if there is no such tile: |
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
| import java.util.Calendar; | |
| import java.util.GregorianCalendar; | |
| public class time { | |
| private int hour, minute, second; | |
| private static Calendar calendar; | |
| public String time(boolean Mil) { | |
| calendar = new GregorianCalendar(); |
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
| nautilus smb://192.168.1.65 |
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
| list=`echo {0..9}` | |
| for c1 in $list | |
| do | |
| for c2 in $list | |
| do | |
| for c3 in $list | |
| do | |
| for c4 in $list | |
| do | |
| for c5 in $list |
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
| mkdir movie | |
| cd movie | |
| counter=0 | |
| while (( "$counter" < 360 )) | |
| do | |
| let counter=counter+1 | |
| convert -size 600x600 canvas:white $counter.jpg | |
| mogrify -pointsize 40 -draw "text 300,300 'hello world'" -rotate $counter $counter.jpg | |
| done | |
| ffmpeg -f image2 -i %d.jpg animation.mpeg |
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
| counter=0 | |
| while (( counter < 1000 )) | |
| do | |
| let counter=counter+1 | |
| xte 'str insert text here' 'key Return' | |
| done |
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
| function ImgurDir { | |
| if [ -d ~/imgur\ albums ] | |
| then | |
| cd ~/imgur\ albums | |
| else | |
| mkdir ~/imgur\ albums | |
| cd ~/imgur\ albums | |
| fi | |
| } | |
| function readAlbum { |
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
| BACKGROUND_PATH="/home/denis/Pictures/AT_wallpapers/" | |
| BACKGROUND_STYLE="scaled" ## 'zoom', 'tiled', 'scaled', 'stretched', 'centered' | |
| CYCLE_TIME="300" | |
| TEMP_LOG="/tmp/rotate${RANDOM}.log" | |
| LOG="/tmp/.`whoami`-gnome-background-rotator" | |
| ##Write Date & Time to Log File | |
| echo "-------------------------------------" > "${LOG}" | |
| echo "`date +\%B\ \%d,\ \%Y`" >> "${LOG}" | |
| echo "-------------------------------------" >> "${LOG}" |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
OlderNewer