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
#include <stdio.h> | |
#include <float.h> | |
// declare global variables | |
float qrt; | |
float dim; | |
float nik; | |
float pen; | |
float chg; |
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
# Build and binary folders | |
[Bb]in/ | |
[Oo]bj/ | |
[Dd]ebug/ | |
[Rr]elease/ | |
artifacts/ | |
bower_components/ | |
node_modules/ | |
!node_modules/.bin |
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
backupCompizConfig() { | |
gconftool-2 --get /apps/compizconfig-1/profiles/Default/general/screen0/options/active_plugins > ~/.backup/compizplugins.txt | |
} | |
addToCompizConf() { | |
TEMPVAR=$(gconftool-2 --get /apps/compizconfig-1/profiles/Default/general/screen0/options/active_plugins) | |
TEMPVAR=",${TEMPVAR:1:-1}," | |
if [ -z $(echo $TEMPVAR | grep ",$1,") ]; then | |
echo "'$1' not found; adding to Compiz conf..." | |
gconftool-2 --set --type=list --list-type=string /apps/compizconfig-1/profiles/Default/general/screen0/options/active_plugins "[${TEMPVAR:1}$1]" |
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
Function TimedPrompt($prompt,$secondsToWait){ | |
Write-Host -NoNewline $prompt | |
$secondsCounter = 0 | |
$subCounter = 0 | |
While ( (!$host.ui.rawui.KeyAvailable) -and ($count -lt $secondsToWait) ){ | |
start-sleep -m 10 | |
$subCounter = $subCounter + 10 | |
if($subCounter -eq 1000) | |
{ | |
$secondsCounter++ |
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
using Microsoft.Win32; | |
namespace FerretLib.Windows | |
{ | |
public static class FileAssociationManager | |
{ | |
/// <summary> | |
/// Create or update a file association in Windows | |
/// </summary> | |
/// <param name="fileExtension">The file extension |
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
####################################### | |
# Pygame development environment setup | |
####################################### | |
# | |
# Intended for use on a clean Xubuntu 14.10 install | |
# Will probably work in other environments but YMMV | |
# | |
####################################### | |
# Install Mercurial |
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
# Build and binary folders | |
[Bb]in/ | |
[Oo]bj/ | |
[Dd]ebug/ | |
[Rr]elease/ | |
# Visual Studio cruft | |
*.[Cc]ache | |
*.sln.cache | |
*.sln.docstates |
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
/* | |
Makes it easier to distribute and use fonts by embedding them in your application as a resource. | |
Example: | |
var fontLoader = new ResourceFont(Properties.Resources.font_ComicSerif); | |
textBox1.Font = fontLoader.GetFont(16); | |
*/ | |
public class ResourceFont | |
{ |
NewerOlder