This file contains hidden or 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
javascript: var element1 = document.createElement("script"); | |
element1.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"; | |
element1.type = "text/javascript"; | |
document.getElementsByTagName("head")[0].appendChild(element1); | |
var text = prompt("請輸入自傳"); | |
var len = text.length; | |
var result = new Array(); | |
if (len > 1350) { | |
alert("字數過多"); | |
} else { |
This file contains hidden or 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
javascript: (function() { | |
function loadScript(url, callback) { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
if (script.readyState) script.onreadystatechange = function() { | |
if (script.readyState == "loaded" || script.readyState == "complete") { | |
script.onreadystatechange = null; | |
callback() | |
} | |
}; |
This file contains hidden or 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
$('.subject').each(function(){ | |
console.log("http://ithelp.ithome.com.tw" + $(this).children('a').attr('href')); | |
console.log($(this).text()); | |
console.log(); | |
}) |
This file contains hidden or 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
# 把 一、三、六 轉成 list | |
def convert_datestr_to_list(date_str): | |
def convert(day): | |
return int(day.replace("一","1").replace("二","2").replace("三","3").replace("四","4").replace("五","5").replace("六","6").replace("日","7")) | |
result = [] | |
for a in date_str.split("、"): | |
b = a.split('~') |
This file contains hidden or 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 | |
$conn = new PDO("mysql:host=127.0.0.1;dbname=rfid;", "root", ""); | |
$cursor = $conn->prepare("select * from :table ;"); | |
$cursor->execute([":table"=>"contrast"]); | |
var_dump($cursor->fetch()); | |
// var_dump($cursor); | |
// var_dump($conn->query("select * from contrast")->fetch()); |
This file contains hidden or 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 tarfile | |
import os | |
import datetime | |
import csv | |
import urllib.error | |
from urllib import request | |
from glob import glob | |
from multiprocessing.dummy import Pool |
This file contains hidden or 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.List; | |
import java.util.ArrayList; | |
import java.sql.Timestamp; | |
import com.google.cloud.dataflow.sdk.Pipeline; | |
import com.google.cloud.dataflow.sdk.options.PipelineOptionsFactory; | |
import com.google.cloud.dataflow.sdk.io.TextIO; | |
import com.google.cloud.dataflow.sdk.transforms.Create; | |
import com.google.cloud.dataflow.sdk.transforms.DoFn; | |
import com.google.cloud.dataflow.sdk.transforms.ParDo; |
This file contains hidden or 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
#! /bin/bash | |
# install | |
# - Fill USERNM (Your Telegram user id) and PWD, then put this script to /usr/local/bin | |
# - Append next line to /etc/pam.d/sshd to enable ssh login notify | |
# - - session optional pam_exec.so seteuid /usr/local/bin/notify | |
# Usage | |
# - run any command and append notify cmd after it | |
# - - Ex. sudo apt-get upgrade;notify |
This file contains hidden or 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
【程式設計社課 設計師招募】 | |
程式設計研究社 社課資訊出爐啦!! | |
接下來這一學期,我們將會針對有興趣卻完全沒有基礎的同學們,開設 麻瓜遊戲社課,透過 JS 帶大家做出有趣的遊戲哦,包含我們的橫向捲軸遊戲(例如楓之谷)、小朋友下樓梯等。 | |
不過在宣傳社課前,要先來公開徵求**設計師大大**們加入啦 | |
如果你也對於程式設計有興趣(有沒有基礎都可以哦),而且想要參與社課的規劃,或是親自上台授課,都歡迎你加入我們的社課籌備團隊哦 | |
This file contains hidden or 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
即將成為大一新鮮人的你 | |
想好要參加什麼社團了嗎? | |
聽過 FinTech、大數據、比特幣嗎? | |
想把腦袋中的好點子實現成 App 嗎? | |
覺得生活中許多不便,想自幹一個程式來解決嗎? | |
如果你的腦中也曾有過這些想法,歡迎加入程式設計研究社! 不用擔心學程式很難或是沒有基礎;臺科程式社希望用有趣的方式讓大家學會程式設計,我們的社課是專為沒有程式基礎的同學所設計,所以放下你對程式設計的恐懼吧,它並不是那個不能說出名字的人XD | |
為了讓大家更了解我們的社團,請務必牢記以下兩個活動哦! |
OlderNewer