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
sdf |
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
public class Solution { | |
public ArrayList<String> anagrams(String[] strs) { | |
// Start typing your Java solution below | |
// DO NOT write main() function | |
if(strs.length < 2) return new ArrayList(); | |
HashMap<String, ArrayList<String>> map = new HashMap(); | |
for(String str : strs) { | |
String key = sortChars(str); |
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
<ion-side-menus> | |
<!-- Center content --> | |
<ion-pane ion-side-menu-content> | |
<header class="bar bar-header bar-positive"> | |
<button class="button button-icon" ng-click="toggleMenu()"> | |
Left | |
</button> | |
<h1 class="title">Center</h1> | |
<button class="button button-clear" ng-click="toggleRight()"> |
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 request = require('request'); | |
var cheerio = require('cheerio'); | |
var searchTerm = 'screen+scraping'; | |
var url = 'http://www.bing.com/search?q=' + searchTerm; | |
request(url, function(err, resp, body){ | |
$ = cheerio.load(body); | |
links = $('.sb_tlst h3 a'); //use your CSS selector here | |
$(links).each(function(i, link){ |
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
<select ng-model="selectedOption" ng-options="todo._id as todo.name for todo in todos"></select><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
header('Access-Control-Allow-Origin: *'); |
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 | |
header('Content-Type: application/json'); | |
header('Access-Control-Allow-Origin: *'); | |
require_once('wp-load.php'); | |
$response = array(); | |
if(isset($_GET['post_id'])) { |
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
$mypost = get_post($_GET['post_id']); |
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
$root_categories = get_categories( array( | |
'parent' => 0, | |
) ); |
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
$args = array( | |
'child_of' => $_GET['id'] | |
); | |
$sub_categories = get_categories($args); |
OlderNewer