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
/** | |
* Definition for singly-linked list. | |
* struct ListNode { | |
* int val; | |
* ListNode *next; | |
* ListNode(int x) : val(x), next(NULL) {} | |
* }; | |
*/ | |
class Solution { | |
public: |
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
#include <iostream> | |
using std::cout; | |
using std::endl; | |
struct add { | |
int sum; | |
add& operator()(int val) { | |
sum += val; |
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
#include <string> | |
#include <unordered_map> | |
#include <string> | |
#include <iostream> | |
class Base { | |
public: | |
Base() :testMap{ {"a",1}, {"b", 2}, {"c", 3}, {"d", 4} } { | |
} | |
virtual ~Base() = default; | |
void display() { |
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
/** | |
* Created by Ashitaka on 2017/5/31. | |
*/ | |
function getKeys() | |
{ | |
$("#kktext").val(""); | |
var keys = new Map(); | |
var allkeysString = ""; | |
$("input[ng-model='game.key']").each(function(index){ |
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
// ==UserScript== | |
// @name BundleStar_GetKey&Gift | |
// @Namespace http://tampermonkey.net/ | |
// @version 1.03 | |
// @description shows how to use babel compiler | |
// @icon https://cdn.bundlestars.com/production/brand/logo.png | |
// @author KamiXuan | |
// @match https://www.bundlestars.com/en/orders* | |
// ==/UserScript== |