Skip to content

Instantly share code, notes, and snippets.

@azlan
azlan / weather.html
Created August 6, 2016 10:47
weather
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>z</title>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<button onclick='getWeather()'>Get weather</button>
<?php
$array = array(1,2,3,2,4,5,4);
sort($array);
$new_array = array();
$duplicate = -1;
$x = 0;
for ($x = 0; $x < count($array)-1; $x++) {
if ($array[$x] != $array[$x+1] && $array[$x] != $duplicate) {
array_push($new_array,$array[$x]);
'atom-text-editor':
'alt-l': 'editor:split-selections-into-lines'