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
import time | |
import requests | |
symbols = [ | |
"ARA", | |
"LN", | |
"ARCH", | |
"NTB", | |
"TELL", | |
"WINS", |
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/python | |
####### | |
# This program would generate PWM on GPIO 7 Pin 26 of P1 | |
# with 50% Dutycyle at 1kHz | |
####### | |
import RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(7,GPIO.OUT) |
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
``` | |
- userkey | |
-- email: abc@123.com | |
-- other: stuff | |
-- permissions | |
--- articles: true | |
--- featured_videos: true | |
--- videos: true | |
``` |
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
UI test to verify the link appears - modify `featured_videos/list.test.js` | |
Add a new row to `video_item/component.js` containing the link | |
Use the existing `videoID` field on the video node in the database. |
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
traceroute to opalsdownunder.com.au (64.207.186.209), 64 hops max, 52 byte packets | |
1 192.168.2.126 (192.168.2.126) 4.167 ms 1.294 ms 2.133 ms | |
2 58.162.26.65 (58.162.26.65) 45.531 ms 46.068 ms 45.091 ms | |
3 144.130.208.209 (144.130.208.209) 33.056 ms 44.263 ms 47.155 ms | |
4 bundle-ether13.ken-core10.sydney.telstra.net (203.50.11.94) 59.469 ms 38.478 ms 39.916 ms | |
5 bundle-ether1.pad-gw11.sydney.telstra.net (203.50.6.61) 39.922 ms 38.280 ms 40.077 ms | |
6 bundle-ether1.sydp-core04.sydney.reach.com (203.50.13.90) 40.287 ms 39.249 ms 52.225 ms | |
7 i-0-1-0-4.tlot-core01.bx.telstraglobal.net (202.84.141.90) 192.462 ms | |
i-0-1-0-45.sydp-core03.bi.telstraglobal.net (202.84.222.17) 38.822 ms | |
i-0-1-0-47.sydp-core03.bi.telstraglobal.net (202.84.222.25) 33.022 ms |
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
1 10.0.1.1 (10.0.1.1) 2.030 ms 2.031 ms 1.913 ms | |
2 172.18.212.7 (172.18.212.7) 17.664 ms 17.493 ms 17.451 ms | |
3 172.18.69.121 (172.18.69.121) 20.514 ms 19.956 ms | |
172.18.69.125 (172.18.69.125) 20.681 ms | |
4 bundle-ether4.woo-edge902.brisbane.telstra.net (203.50.44.42) 18.872 ms 17.598 ms 17.142 ms | |
5 bundle-ether6.woo-core1.brisbane.telstra.net (203.50.11.138) 20.323 ms 16.695 ms 36.180 ms | |
6 bundle-ether11.chw-core10.sydney.telstra.net (203.50.11.70) 30.691 ms 30.769 ms 30.087 ms | |
7 bundle-ether1.oxf-gw11.sydney.telstra.net (203.50.6.93) 31.620 ms 31.351 ms 32.405 ms | |
8 bundle-ether1.sydo-core03.sydney.reach.com (203.50.13.98) 30.839 ms 31.553 ms 29.223 ms | |
9 i-0-1-0-16.sydo-core04.bi.telstraglobal.net (202.84.222.58) 30.432 ms 31.790 ms |
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
function parallax(element) { | |
var offset = 1; | |
// Determine whether scrolling up or scrolling down | |
var st = $(this).scrollTop(); | |
if (st < lastScrollTop){ | |
offset = offset * -1; | |
} | |
lastScrollTop = st; |
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 | |
use CVCNetwork\YesheisCatalog\Models\LandingPage; | |
/** | |
* Created by IntelliJ IDEA. | |
* User: adrianstein | |
* Date: 18/03/2014 | |
* Time: 10:53 AM | |
*/ |
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
class LandingRoutesTest extends SeededTestCase { | |
public function testInvalidLandingPageReroutesToLanguageSpecificHome() { | |
$this->call('GET', '/zh-hans/landing/www.dudpage.com'); | |
$this->assertResponseStatus(302); | |
$this->assertRedirectedTo('/zh-hans'); | |
} |