Skip to content

Instantly share code, notes, and snippets.

View daghlny's full-sized avatar
🎯
Focusing

1Nuo daghlny

🎯
Focusing
View GitHub Profile
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
#include <iostream>
using std::cout;
using std::endl;
struct add {
int sum;
add& operator()(int val) {
sum += val;
#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() {
/**
* 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){
@daghlny
daghlny / BS_keys_for_ASF_Activated.user.js
Last active March 6, 2017 07:23
to get bundle stars keys automatically
// ==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==