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
| ## EVILBASE %{TIMESTAMP_ISO8601:pickles} - %{LOGLEVEL:level}: | |
| grok { | |
| match => { "message" => "%{EVILBASE}%{GREEDYDATA}" } | |
| } | |
| date { | |
| match => [ "pickles" , "ISO8601" ] | |
| } |
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
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| # Read SSH config | |
| my $filename = '/Users/<your user>/.ssh/config'; | |
| open(my $fh, '<:encoding(UTF-8)', $filename) | |
| or die "Could not open file '$filename' $!"; |
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
| #import "DRBlocks.h" | |
| @interface DRBlocks () | |
| @property (nonatomic) NSMutableDictionary *blocksHash; | |
| @end | |
| @implementation DRBlocks | |
| - (instancetype)init | |
| { |
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
| - (void)addBlock:(genericBlock)blockName; | |
| - (blockType)getBlock; |
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
| __weak EAFriendsListContacts *weakSelf = self; | |
| phoneVerification.dismissBlock = ^(BOOL success, NSString *phoneNumber, NSString *verificationCode){ | |
| [button setEnabled:YES withSpinner:NO]; | |
| if (success) { | |
| [[EAEffectManager sharedEffectManager] startEffect:EAEffectTypeConfettiApplause]; | |
| [weakSelf _refreshContactData]; | |
| } | |
| }; |
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
| handleResponseReady: function(response) { | |
| try { | |
| if(AuthToken.isChanged(this.token)) { | |
| this._response.setHeader('Set-Cookie', AuthCookie.cookieFromToken(this.token)); | |
| } | |
| this._response.setHeader('Content-type', 'application/json'); | |
| this._response.end(JSON.stringify(response)); | |
| } catch(e) { | |
| this.handleError(e); | |
| } |
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
| struct RadialParameters { | |
| unsigned long period = 5000; // duration of single cycle, in milliseconds. | |
| float thickness = 200; | |
| RNGradient gradientInside = RNGradient(0, RNGradientCapped, 0x880000, 0x884400); | |
| RNGradient gradientShell = RNGradient(0, RNGradientCapped, 0xFF0000, 0x0000FF); | |
| RNGradient gradientOutside = RNGradient(0, RNGradientCapped, 0x000088, 0x003388); | |
| }; |
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
| mkdir -p build/Debug/GNU-Linux-x86/_ext/1731549632 | |
| rm -f "build/Debug/GNU-Linux-x86/_ext/1731549632/Constants.o.d" | |
| g++ -Wno-write-strings -c -g -I../Arduino/PyramidOfPossibilities -I../PlatformData -I../Arduino/libraries/RNChaser -I../Arduino/libraries/RNLights -I../Arduino/libraries/Accelerometer -I../Arduino/PyramidOfPossibilities -I. -I../Arduino/libraries/FastLED -std=c++11 -MMD -MP -MF "build/Debug/GNU-Linux-x86/_ext/1731549632/Constants.o.d" -o build/Debug/GNU-Linux-x86/_ext/1731549632/Constants.o ../Arduino/PyramidOfPossibilities/Constants.cpp | |
| mkdir -p build/Debug/GNU-Linux-x86/_ext/1731549632 | |
| rm -f "build/Debug/GNU-Linux-x86/_ext/1731549632/Controller.o.d" | |
| g++ -Wno-write-strings -c -g -I../Arduino/PyramidOfPossibilities -I../PlatformData -I../Arduino/libraries/RNChaser -I../Arduino/libraries/RNLights -I../Arduino/libraries/Accelerometer -I../Arduino/PyramidOfPossibilities -I. -I../Arduino/libraries/FastLED -std=c++11 -MMD -MP -MF "build/Debug/GNU-Linux-x86/_ext/1731549632/Controller.o.d" -o build/ |
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
| var w:CGFloat = 320 | |
| var h:CGFloat = 100 | |
| for ( var i = 0; i < 3; i++ ) { | |
| let button = HEYButton(frame: CGRectMake(0, CGFloat(i) * h, w, h)); |
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
| @interface EAUser : NSObject | |
| - (NSArray *)decks; | |
| @end |