This file contains hidden or 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
| def zeuge(a, n) | |
| b = (n-1).to_s(2) # binary representation | |
| d = 1 | |
| b.reverse.split('').each do |i| | |
| d = (d*d) % n | |
| if i.to_i == 1 | |
| d = (d*a) % n | |
| end | |
| puts "#{i}: #{d}" |
This file contains hidden or 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 <Arduino.h> | |
| short status_leds[4] = {7, 8, 5, 4}; | |
| short status_leds_count = 4; | |
| short status_leds_active = 1; | |
| short dance_leds[2] = {13,12}; | |
| short dance_leds_count = 2; | |
| short buzzer = 3; | |
| short button = 2; |
This file contains hidden or 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
| @Test | |
| public void testSeasonAndEpisodeNumberExtraction() { | |
| LocalFileService localFileService = new LocalFileService() | |
| File test1 = new File("Breaking.Bad.4.Days.Out.S02E09.mkv"); | |
| File test2 = new File("Breaking.Bad.4.Days.Out.02X09.mpg"); | |
| Assert.assertTrue(localFileService.hasPattern(test1)); | |
| Assert.assertTrue(localFileService.getSeason(test1) == 2); | |
| Assert.assertTrue(localFileService.getEpisode(test1) == 9); | |
This file contains hidden or 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 sepm.ss15.e1325214.validators; | |
| import sepm.ss15.e1325214.models.Jockey; | |
| /** | |
| * Specific validation behaviour for a jockey object | |
| * | |
| * @author philipp | |
| */ | |
| public class JockeyValidator extends Validator{ |
This file contains hidden or 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 | |
| # case is closed | |
| echo 0 > /sys/class/hwmon/hwmon2/device/intrusion0_alarm | |
| # space seperated list of hdd's | |
| HDDS="/dev/sdb" | |
| CASE_FAN=0 | |
| for disk in $HDDS | |
| do |
This file contains hidden or 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
| [ | |
| { | |
| "id": "4de26e06814df7ebdc14af8b", | |
| "name": "Vineapple Cafe", | |
| "contact": { | |
| "phone": "+13477991701", | |
| "formattedPhone": "+1 347-799-1701", | |
| "twitter": "VineappleCafe" | |
| }, | |
| "location": { |
This file contains hidden or 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
| rtmp { | |
| server { | |
| listen 1935; | |
| chunk_size 4096; | |
| application live { | |
| live on; | |
| meta copy; | |
| push rtmp://live91.eu-dl.zencoder.io:1935/live/foobar; | |
| } |
This file contains hidden or 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
| Style/StringLiterals: | |
| EnforcedStyle: double_quotes | |
| Style/StringLiteralsInInterpolation: | |
| EnforcedStyle: double_quotes | |
| Style/BlockDelimiters: | |
| EnforcedStyle: braces_for_chaining | |
| Metrics/LineLength: |
This file contains hidden or 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
| diskutil info /Volumes/HDD_NAME | grep "UUID" | |
| sudo echo "UUID=12345678-1ABC-1CDE-1FGH-123456789012 none hfs rw,noauto" > /etc/fstab |
This file contains hidden or 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
| Cached Theme.pak |