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
var gulp = require('gulp'); | |
var rename = require('gulp-rename'); | |
var browserSync = require('browser-sync'); | |
var notify = require('gulp-notify'); | |
var sass = require('gulp-sass'); | |
var minifycss = require('gulp-minify-css'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
gulp.task('browser-sync', function() { | |
browserSync({ |
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.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
public static void askForInputFile() throws FileNotFoundException { | |
Scanner in = new Scanner(new File("src/input.txt")); | |
int positionInquiry = in.nextInt(); | |
position = new int[positionInquiry]; | |
for (int i = 0; i < positionInquiry; i++) { |
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
#----------------------------------------------------------------------------------------------------- | |
#Aliases becuause typing out directories sucks | |
#----------------------------------------------------------------------------------------------------- | |
alias speedtest='wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip' | |
alias renew='sudo ipconfig set en0 BOOTP && sudo ipconfig set en0 DHCP' | |
alias websvr='python -m SimpleHTTPServer 8000' | |
alias sbg='/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &' |
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
[alias] | |
today = !git log --since=midnight --author=\"$(git config user.name)\" --oneline | |
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
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
//Objective-C | |
NSMutableString *str = [[NSMutableString alloc] initWithFormat:@"Hello "]; //NSMutableString *str = @"Hello,"; | |
str = [str stringByAppendingString:@" world!"]; | |
NSLog(@"%@", str); //Output: Hello, world! | |
//Java | |
String newString = "Hello, "; | |
String secondString = " world!"; |
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
private static int addTwoIntegers(int firstValue, int secondValue) { | |
int intResult = 0; | |
int remainderResult = 0; | |
intResult = firstValue / secondValue; | |
remainderResult = firstValue % secondValue; | |
System.out.printf("firstValue divided by secondVlaue is %s.%s\n", intResult, remainderResult); | |
//Same as above statement, but with println instead of printf | |
//System.out.println("firstValue divided by secondValue is " + intResult + "." + remainderResult); |
NewerOlder