This file contains 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
xcopy /s /Y C:\Users\Pascal\drive\Projects\karteikarten C:\xampp\htdocs\karteikarten | |
chrome "http://localhost/karteikarten" |
This file contains 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
# Disable Dashboard | |
defaults write com.apple.dashboard mcx-disabled -boolean true | |
killall Dashboard | |
# Enable Dashboard | |
defaults write com.apple.dashboard mcx-disabled -boolean false | |
killall Dashboard |
This file contains 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
#!/bin/bash | |
case "$1" in | |
"n" ) | |
if [ -z $2 ] | |
then | |
echo "Specify an app name" | |
else | |
if [ -d ~/rails/$2 ] | |
then | |
echo "App '$2' exists already" |
This file contains 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
body { | |
background-color: #fff; | |
font-size: 16px; | |
font-family: helvetica; | |
} | |
.jwlogo { | |
display: none; | |
} |
This file contains 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
<!DOCTYPE html> | |
<html></html> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Zeit<style id="jsbin-css"> | |
body { | |
font: 16px helvetica, arial, sans-serif; | |
background-color: #eee; | |
margin: 10px; | |
} |
This file contains 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
<% request.header do |k, v| %> | |
"<%= k %>" => <%= v %><br> | |
<% end %> | |
<% for header in request.env.select {|k,v| k.match("^HTTP.*")} %> | |
"<%=header[0].split('_',2)[1]%>" => <%=header[1]%><br> | |
<% end %> |
This file contains 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
public class Arrays { | |
public static void main(String[] args) { | |
int[] numbers = new int[5]; | |
numbers[0] = 5; | |
int l = numbers.length; |
This file contains 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
public class Dice { | |
private int anzahl; | |
private int grenze = 6; | |
private int[] zaehler = new int[6]; | |
Dice(int wuerfeAnzahl){ | |
anzahl = wuerfeAnzahl; | |
This file contains 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
def rand_str length | |
('a'..'z').to_a.shuffle[0..length].join | |
end |
This file contains 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
def sum_to | |
print 'Enter any number greater than 1: ' | |
input = gets.to_i | |
sum = 0 | |
for a in 1..input do | |
sum += a | |
end | |
OlderNewer