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 | |
header('Content-Type: image/jpeg'); | |
$contents = file_get_contents($_GET['img']); | |
$mutations = $_GET['mutations']; | |
for($i = 0; $i < $mutations; $i++) { | |
$contents = substr_replace($contents, str_shuffle("asdw4t98wfh9p8w3th98w3tsetf9wgt98hgt98rzt98hwz"), rand(strlen($contents)/10, strlen($contents)), 0); |
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
// Run with AllInputsFirmata | |
import themidibus.*; //Import midibus library | |
import processing.serial.*; //Import serial library | |
import cc.arduino.*; | |
// Wanna use midi input? | |
boolean useMidi = false; | |
// Arduino Ports | |
int button = 7; |
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
.c-table | |
+half-spacing(margin-bottom) | |
+text-copy-s | |
vertical-align: top | |
td, | |
th | |
+medium-spacing(padding) | |
vertical-align: top | |
border-bottom: 1px solid $border-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
$max-page-width: 1600px | |
$min-page-width: 320px | |
$compact-max-page-width: 500px | |
$break-xsmall: 320px | |
$break-small: 480px | |
$break-medium: 700px | |
$break-large: 880px | |
$break-xlarge: 1280px |
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
// Das Resultat passt nicht, weil long 8 byte groß ist, also maximal 1.8446744e+19 sein kann | |
// 49! ist aber 6.0828186e+62 und passt nicht rein, also schneidet der die Bytes ab und das Ergebnis passt nicht mehr | |
public class BinomService { | |
public static void main(String[] args) { | |
System.out.println(binom(49, 6)); | |
} | |
public static long fac(int n) { | |
if(n == 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
<?php $customKeys = get_post_custom(); | |
foreach($customKeys as $key => $value) { | |
if(substr($key, 0, 1) !== '_') { | |
?> | |
<h3><?php echo $key; ?></h3> | |
<p><?php echo $value[0]; ?></p> | |
<?php | |
} | |
} | |
?> |
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
source 'https://rubygems.org' | |
gem 'compass' | |
gem 'modular-scale' | |
gem 'crispy-grid' |
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
git clone [email protected]:targat/frontend-setup.git . | |
rm -rf .git | |
mkdir css | |
bundle install |
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 node | |
/** | |
* generateTypos | |
* Generate Typos from keywords | |
* | |
* @param array keywords | |
* @param bool wrongKeys | |
* @param bool missedChars | |
* @param bool transposedChars |
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 coffee | |
http = require "http" | |
domain = process.argv[2] | |
http.get "http://trustlinker.de/api/domain.json?url=#{domain}", (res) -> | |
res.setEncoding "utf8" | |
res.on "data", (data) -> | |
data = JSON.parse data |