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 | |
# ~/Scripts/1024scale.sh | |
# change display settings to clone mode, 1024x768 pix for VGA (projector) and scales it to the resolution of 1024x600 of the internal display | |
xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync | |
xrandr --addmode VGA1 1024x768 | |
xrandr --fb 1024x768 | |
xrandr --fb 1024x768 --output LVDS1 --mode 1024x600 --scale 1x1.28 --panning 0x0 | |
xrandr --output VGA1 --same-as LVDS1 --mode 1024x768 |
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 | |
xrandr --fb 1536x900 --output LVDS1 --mode 1024x600 --scale 1.5x1.5 --panning 0x0 |
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 sys | |
import os | |
import subprocess | |
def usage(): | |
print "Usage:\n\n " + sys.argv[0] + " <vdi-File> <mount point>" | |
if len(sys.argv) < 3: |
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
var calc = function() { | |
var coefficients = [1, 2, 3, 4, 5, 6, 7, 8, 9], | |
signTable = ['-', '', '+'], | |
cases = 0, | |
caseFormula = '', | |
ternary = '', | |
i = 0, | |
result = {}, | |
r = document.getElementById('result'), |
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
// Kernel definition | |
__global__ void MatAdd(float A[N][N], float B[N][N], float C[N][N]) { | |
int i = threadIdx.x; | |
int j = threadIdx.y; | |
C[i][j] = A[i][j] + B[i][j]; | |
} | |
int main() { | |
// Kernel invocation with one block of N * N * 1 threads | |
int numBlocks = 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
// Kernel definition | |
__global__ void MatAdd(float A[N][N], float B[N][N], float C[N][N]) { | |
int i = blockIdx.x * blockDim.x + threadIdx.x; | |
int j = blockIdx.y * blockDim.y + threadIdx.y; | |
if (i < N && j < N) | |
C[i][j] = A[i][j] + B[i][j]; | |
} | |
int main() { | |
// Kernel invocation |
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
Index: Documents/katowice/index.html | |
=================================================================== | |
--- Documents/katowice/index.html (revision 255) | |
+++ Documents/katowice/index.html (revision 256) | |
@@ -424,7 +424,7 @@ | |
<h3 style="margin-top: -20px"> | |
JSXGraph - visualizing mathematics on (nearly) every device | |
</h3> | |
- <p style="font-size: 28px; margin-top: -20px">Michael Gerhäuser, Alfred Wassermann,<br /> University of Bayreuth, Germany</p> | |
+ <p style="font-size: 28px; margin-top: -20px">Michael Gerhäuser, Alfred Wassermann<br /> University of Bayreuth, Germany</p> |
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
@@ -78,11 +78,11 @@ | |
display: block; /* none */ | |
position: absolute; | |
overflow: hidden; | |
- width: 900px; | |
- height: 700px; | |
+ width: 700px; | |
+ height: 550px; | |
left: 50%; | |
top: 50%; |
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
/** | |
* Assigns a value to a variable in the current scope. | |
* @param {String} vname Variable name | |
* @param {%} value Anything | |
* @see JXG.JessieCode#sstack | |
* @see JXG.JessieCode#scope | |
*/ | |
letvar: function (vname, value) { | |
if (this.builtIn[vname]) { | |
this._warn('"' + vname + '" is a predefined value.'); |
OlderNewer