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
function addWord(word){ | |
console.log(word); | |
$.ajax({ | |
type: 'GET', | |
url: 'http://dict.youdao.com/wordbook/ajax', | |
dataType: 'json', | |
data:{action:'addword',q:word,date:new Date(),le:'eng'}, | |
// beforeSend: ajaxBeforeFn, | |
success: function(data){ | |
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
@RequestMapping(value = "/upload", method = RequestMethod.POST) | |
@ResponseBody | |
public void upload(@RequestParam("file") MultipartFile file) { | |
String rawFile = file.getContentType(); | |
System.out.println(); | |
} |
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
wap.core.ui.hueDrive.ShareDialog.prototype.executeCopy = function (text) { | |
var input = document.createElement('textarea'); | |
document.body.appendChild(input); | |
input.value = text; | |
input.focus(); | |
input.select(); | |
document.execCommand('Copy'); | |
input.remove(); | |
}; |
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
package co.jp.worksap; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.Scanner; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class RegularExpression { | |
public static void main( String args[] ) throws FileNotFoundException { |
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 org.primefaces.component.datatable.DataTable; | |
import org.primefaces.context.RequestContext; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.annotation.PostConstruct; | |
import javax.faces.application.FacesMessage; | |
import javax.faces.bean.ManagedBean; | |
import javax.faces.bean.ManagedProperty; | |
import javax.faces.bean.ViewScoped; |
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 org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.annotation.PostConstruct; | |
import javax.faces.bean.ApplicationScoped; | |
import javax.faces.bean.ManagedBean; | |
import javax.faces.bean.ManagedProperty; | |
import java.util.HashMap; | |
import java.util.Map; |
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
package com.lynda.javatraining.db.tables; | |
import java.sql.Connection; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import com.lynda.javatraining.db.DBType; | |
import com.lynda.javatraining.db.DBUtil; |
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 os | |
from PIL import Image | |
directory = "3 photos" | |
i = 0 | |
for file in os.listdir(directory): | |
if file == ".DS_Store": | |
continue | |
fullName = directory +"/"+ file |
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
#include <iostream> | |
using namespace std; | |
void getResult(char str[]){ | |
int numbers[26]; | |
for(int j = 0; j < 26; j ++) | |
numbers[j] = 0; |
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
#include <iostream> | |
using namespace std; | |
struct PocketCard { | |
char x; | |
int y; | |
}; |
NewerOlder