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
$salt = ''; | |
$password = ''; | |
for($i=0;$i < 64;$i++) { | |
$char = ''; | |
switch(rand(0,3)) { | |
//A-Z | |
case 0: | |
$char = chr(rand(65,90)); | |
break; | |
//a-z |
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
<!-- Alt --> | |
<body class="font-family-ubuntu font-size-is-default menu-type-fusionmenu col12"> | |
<!-- Neu --> | |
<body class="font-family-ubuntu font-size-is-default menu-type-fusionmenu col12 agn-body-sitebranding"> |
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 void error(final String errorMsg) { | |
SwingUtilities.invokeLater(new Runnable() | |
{ | |
public void run() { | |
JOptionPane.showMessageDialog( | |
DownloadFrameThreaded.this, errorMsg, "Error", JOptionPane.ERROR_MESSAGE | |
); | |
} | |
}); |
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
package sheet12.simpledownloadclient; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
public class DownloadThread extends Thread { |
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
/* | |
* Author: Frido Koch | |
* Email: [email protected] | |
* License: CC BY-NC-SA 3.0 DE | |
* http://creativecommons.org/licenses/by-nc-sa/3.0/de/ | |
*/ | |
package sheet10; | |
import static org.junit.Assert.*; |
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 | |
//old | |
$this->breadcrumbs[] = array( | |
'name' => $translator->trans('Home'), | |
'path' => $this->generateUrl('_index', array()), | |
); | |
//new | |
$this->breadcrumbs[] = [ | |
'name' => $translator->trans('Home'), | |
'path' => $this->generateUrl('_index', []), |
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
<tr> | |
<td>Umsatzsteuer (67) 19,00 % aus {{ advice.sumNetValue|number_format(2, ',', '.') }}</td> | |
<td style="text-align: right">{{ advice.sumSalesTax|number_format(2, ',', '.') }}</td> | |
</tr> |
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 | |
//autoloader | |
require_once __DIR__ . '/vendor/autoload.php'; | |
use Aws\S3\S3Client; | |
use Aws\S3\Enum\CannedAcl; | |
//init client | |
$s3Client = S3Client::factory(array( | |
'key' => '<key>', | |
'secret' => '<secret>', |
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 php | |
<?php | |
if ($argc < 2) { | |
printf('Usage: %s <filename>' . PHP_EOL, $argv[0]); | |
exit(1); | |
} | |
if (!file_exists($argv[1])) { | |
printf('File %s was not found' . PHP_EOL, $argv[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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer