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.Scanner; | |
public class Main { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); |
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
<!doctype html> | |
<html ng-app="randomPick"> | |
<head> | |
<meta charset="utf-8"/> | |
<link rel="stylesheet" href="./css/bootstrap.3.2.0.css"> | |
<link rel="stylesheet" href="./css/simulator.css"> | |
<script src="./js/jquery.js"></script> | |
<script src="./js/angular.1.3.8.min.js"></script> | |
<script src="./js/random.js"></script> | |
<title>隨機抽獎</title> |
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
# -*- coding: utf-8 -*- | |
import re | |
#處理掉unicode 和 str 在ascii上的問題 | |
import sys | |
import os | |
import psycopg2 | |
import cookielib, urllib2,urllib | |
from lxml import html,etree |
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
#先定義函數 | |
ff = function(y,i){ | |
if (i==1){ | |
return((4*5+1)%%16) | |
}else{ | |
y[i] = (y[i-1]*5+1)%%16 | |
return(y) | |
} | |
} |
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
__author__ = 'ESB13240' | |
#encoding=utf-8 | |
import datetime | |
#處理掉unicode 和 str 在ascii上的問題 | |
import sys | |
import json | |
import os | |
reload(sys) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
'use strict' | |
function pad(v){ | |
return (v<10)?'0'+v:v | |
} | |
function getDateString(d){ | |
var year = d.getFullYear(); | |
var month = pad(d.getMonth()+1); | |
var day = pad(d.getDate()); |
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 | |
fbid = [fbid] | |
url = "https://graph.facebook.com/v2.10/%s"%fbid | |
querystring = {"access_token":[token],"fields":"name,age_range,ids_for_apps,ids_for_pages"} | |
headers = {'cache-control': "no-cache"} | |
response = requests.request("GET", url, headers=headers, params=querystring) | |
print(response.text) |
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 options = { method: 'POST', | |
url: 'https://southcentralus.api.cognitive.microsoft.com/customvision/v1.0/Prediction/[xxxx]/url', | |
qs: { iterationId: [iteration id] }, | |
headers: | |
{ 'cache-control': 'no-cache', | |
'content-type': 'application/json', | |
'prediction-key': [prediction key] }, | |
body: { Url: [image URL] }, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer