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 requests | |
import sys | |
import schedule | |
from datetime import datetime | |
import time | |
def req(): | |
r = requests.get('https://ttp.cbp.dhs.gov/schedulerapi/slots?orderBy=soonest&limit=1&locationId=5020&minimum=1') | |
s = '[' + datetime.now().strftime("%H:%M:%S") + ']' |
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
package main | |
import ( | |
"fmt" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/ec2metadata" | |
"github.com/aws/aws-sdk-go/aws/session" | |
) |
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 { | |
boolean visited[][]; | |
public void solve(char[][] board) { | |
if (board == null || board.length <= 1) return; | |
visited = new boolean[board.length][board[0].length]; | |
for (int col=0; col<board[0].length; col++) { | |
if (board[0][col] == 'O') | |
dfs(board, 0, col); | |
if (board[board.length-1][col] == 'O') | |
dfs(board, board.length-1, col); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>net.ayberkyilmaz</groupId> | |
<artifactId>sf-food-truck-rest</artifactId> | |
<version>1.0-SNAPSHOT</version> |
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
{ | |
"title": "Basic Dashboard With Pointers", | |
"services": { | |
"query": { | |
"idQueue": [ | |
1, | |
2, | |
3, | |
4 | |
], |
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
➜ source-code git:(master) ✗ grep "code/" * | |
content_types.py:imp.load_source("ntpd","code/nutchpy_dict.py") | |
genstats_main.py:imp.load_source("url_codes","code/url_codes.py") | |
genstats_main.py:imp.load_source("content_types","code/content_types.py") | |
inexact_dedup.py:imp.load_source("edd","code/exact_dedup.py") | |
run_approx_dedup.py:imp.load_source("iedd","code/inexact_dedup.py") | |
run_dedup.py:imp.load_source("edd","code/exact_dedup.py") | |
url_codes.py:imp.load_source("ntpcd","code/nutchpy_crawl_dict.py") |
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
package com.company; | |
import java.util.Random; | |
/** | |
* Created by ayberk on 9/23/15. | |
*/ | |
public class MyLinkedList | |
{ | |
Node head; |
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
package com.company; | |
import java.util.Random; | |
/** | |
* Created by ayberk on 9/23/15. | |
*/ | |
public class MyLinkedList | |
{ | |
Node head; |
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 java.util.Set; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.TreeSet; | |
import java.util.ArrayList; | |
public class Problem7_5 { | |
static HashMap<Character, String> map; | |
private static void prepareDictionary() { |
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 java.util.ArrayList; | |
/** | |
* Created by ayberk on 2/3/15. | |
*/ | |
public class sdfsf | |
{ | |
private static ArrayList<String> combs = new ArrayList<String>(); | |
public static void setCombs(String initial) { |
NewerOlder