dasha / gist:2a139a024b97494aa56a5732cc49d631
0 likes
0 forks
1 files
Last active
1 | Error 86: |
2 | |
3 | #!/bin/bash |
4 | |
5 | # Loop through all directories in PATH |
6 | for dir in ${PATH//:/ }; do |
7 | echo "$dir" |
8 | # Check if directory exists before trying to access |
9 | if [ -d "$dir" ]; then |
10 | # Loop through executable files in this directory |
kristofer / Git Tricks
0 likes
0 forks
1 files
Last active
For re-doing the repo, to take into account your changes to the .gitignore
Remove Stuff that should ignored.
The series of commands below will remove all of the items from the Git Index (not from the working directory or local repo), and then updates the Git Index, while respecting git ignores. PS. Index = Cache
First:
git rm -r --cached .
kristofer / Highlight Code for Keynote
0 likes
0 forks
1 files
Last active
Highlight Code for Keynote
https://gist.github.com/jimbojsb/1630790
https://medium.com/@bucknall/tricks-for-presenting-code-in-keynote-72f11a1524c2
highlight -O rtf my file.py | pbcopy
kristofer / POM creation
0 likes
0 forks
1 files
Last active
create a project structure using Maven (mvn) for Java
mvn archetype:generate -DgroupId=rocks.zipcode -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.5 -DinteractiveMode=false
Maven project creation
kristofer / basic1.bas
0 likes
0 forks
1 files
Last active
1 | 10 PRINT "Top 10 BASIC Features" |
2 | 20 PRINT "1. PRINT - Displays output on the screen" |
3 | 30 PRINT "2. LET - Assigns values to variables" |
4 | 40 LET myVar = 5 |
5 | 50 PRINT "3. INPUT - Gets user input" |
6 | 60 INPUT "Enter your name"; name$ |
7 | 70 PRINT "Hello ";name$ |
8 | 80 PRINT "4. IF/THEN - Makes decisions" |
9 | 90 INPUT "Enter a number"; num |
10 | 100 IF num > 5 THEN PRINT "The number is greater than 5" |
Newer
Older