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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package day8; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package day8; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.regex.Matcher; |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package day14; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; |
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
{ | |
"destination_addresses": [ | |
"College Park, MD, USA", | |
"Rochester, NY, USA" | |
], | |
"origin_addresses": [ | |
"Marietta, NY 13110, USA" | |
], | |
"rows": [ | |
{ |
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
var images = document.getElementsByTagName('img'); | |
for(var i = 0; i < images.length; i++) { | |
images[i].src = "http://tristanwiley.com/labs/carl/carl.jpg"; | |
} |
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 | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "http://feeds.feedburner.com/xkcd/xkcd?format=xml"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_HEADERFUNCTION, "HandleHeaderLine"); | |
$body = curl_exec($ch); | |
function HandleHeaderLine($curl, $header_line){ | |
$headers .= $header_line . "<br>"; |
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
//This code appends the jquery script to the website, basically making any jquery functions work. | |
var s = document.createElement('script'); | |
s.setAttribute('src', "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"); | |
document.body.appendChild(s); | |
//This code listens for changes to the body with a MutationObserver, only issue is that sometimes the jQuery script isn't added | |
//until after this runs so an error occurs, I'd suggest injecting the above code then injecting this code, not really sure how to | |
//fix it, I'm sure you can figure it out. Basically once the above code is injected the below will work. Then when something | |
//changes i.e. them expanding the box the text #changed will be added, since this may occur more than once you might want to change | |
//this so it adds a number or something. Then all you have to do in your app is listen for a URL change. Tada! |
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
window.addEventListener('keydown', e => { | |
if( input.value === '/collapse' ) { | |
collapseAll(); | |
input.value = ''; | |
e.stopPropagation(); | |
}else if(input.value === '/uncollapse'){ | |
unCollapseAll(); | |
} | |
}, 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
Hi everyone, this is a backer-only post, because it primarily involves backers. We don’t want announcements in regards to you all, to be a shock to you all. | |
Later this week, we’re announcing our first hardware deal - and later this month, our first hardware. It’s a big change for Console, and it’s going to change what we do. | |
We still hope to make Console OS. But as Jide and Remix OS have found, it’s not a very profitable business. Millions of downloads, doesn't always mean millions in funding. Had they reached out to us, we would have told them that from the get-go. Between Google entering the PC space with Android, and Intel backing away from Android on PC - after we couldn’t stop development of Console OS… it’s a painful double-whammy. | |
Worse, Google isn’t bringing what you all want to the PC space. They’re bringing Chromebooks that run Android apps, not true Android. So, there’s still room for us, but it may not be in offering a PC OS for existing computers. | |
In the wake of those post-campaign changes, t |
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
I'm running elementary OS 0.3.2 Freya (64-bit) on my HP 15z-af100 laptop. | |
I was trying to update/install the latest version when I saw the update was avalible (unsure the number) and whenever it was unzipping xxxxx over xxxxx it froze and I couldn't move my mouse or anything on my screen. Pressing F1/F2 did nothing and the only way to fix was to reboot manually. | |
``` | |
Processor: Quad-Core AMD A8-7410 APU with AMD Radeon R5 Graphics | |
Memory: 3.3 GiB | |
Graphics: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 45) | |
Storage: 165.0 GB | |
``` |