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
<h1>My Account</h1> | |
<div id="account-tabs" class="clearfix"> | |
<ul> | |
<li id="account-dashboard" class="tabli"><a href="/account/dashboard">Account Dashboard</a></li> | |
<li id="order-history" class="tabli"><a href="/account/order-history">Order History</a></li> | |
<li id="address-book" class="tabli"><a href="/account/address-book">Address Book</a></li> | |
</ul> | |
</div> |
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
// ---------------------------------------------------------------------------------------------- // | |
// -----| NETCODE OPTIMIZATIONS |---------------------------------------------------------------- // | |
// ---------------------------------------------------------------------------------------------- // | |
cl_cmdrate "30" // Command packets sent to server per second (Default 30) | |
cl_updaterate "30" // Packets per second you request from the server (Default 20) | |
cl_interp "0.067" // Interpolation value to match updaterate 30 (Default 0.1) | |
rate "30000"; // Max bytes/sec the host can receive data (Default 10000) | |
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 | |
# Define your server information here | |
SERVER="<hostname_or_ip>" | |
PORT="22" | |
USER="<user_name>" | |
FILEPATH="<file_path>" | |
# Get IP from whatismyip.com and store it in a file | |
wget http://www.whatismyip.com/automation/n09230945.asp -O ip.txt |
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
#! /usr/bin/env python | |
import httplib | |
import sys | |
import os | |
import ftplib | |
# File IP will be output to | |
file="ip.txt" | |
# Replace server, user, and password with your login information |
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
#!/usr/bin/env bash | |
set -o errexit pipefail | |
WORKSPACE=${HOME}/workspace # Path to your workspace | |
find ${WORKSPACE} -name '.git' -type d | while read LINE; do | |
pushd "${LINE}/../" | |
git fsck && git gc | |
popd | |
done |
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
<?php | |
function randColor() { | |
$randDec = rand(0, 16777215); | |
$randHex = dechex($randDec); | |
$color = '#' . $randHex; | |
return $color; | |
} |
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
<?php | |
for ($x = 1; $x <= 100; $x++) { | |
if ($x % 3 === 0 && $x % 5 === 0) { | |
echo 'FizzBuzz'; | |
} elseif ($x % 3 === 0) { | |
echo 'Fizz'; | |
} elseif ($x % 5 === 0) { | |
echo 'Buzz'; |
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
import os | |
import time | |
path = "E:\\Downloads" | |
now = int(time.time()) | |
dirList = os.listdir(path) | |
for fileName in dirList: | |
filePath = path + "\\" + fileName |
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
<?php | |
$date = date('M d, Y - h:i A', 499155600); // Oct 26, 1985 - 01:20 AM | |
$libyans = false; | |
$speed = 0; | |
$watts = 1210000000; | |
while ($libyans == true) { | |
if ($speed >= 88 && $watts == 1210000000 ) { |
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
// -------------------------------------------------------------------------- // | |
// -----| PERFORMANCE |------------------------------------------------------ // | |
// -------------------------------------------------------------------------- // | |
fps_max 200 | |
@panorama_max_fps 200 | |
@panorama_vsync 0 | |
echo "/* ---------------------------------------------------- */" |
OlderNewer