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 com.google.android.glass.app.Card; | |
* extends Activity | |
* | |
**/ | |
/** | |
* simple card view example | |
*/ | |
protected void onCreate(Bundle savedInstanceState){ |
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
// Copyright 2013 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
package org.chromium.content.browser; | |
import android.content.ComponentName; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.PackageManager; |
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
/** | |
* The three types used by an asynchronous task are the following: | |
Params, the type of the parameters sent to the task upon execution. | |
Progress, the type of the progress units published during the background computation. | |
Result, the type of the result of the background computation. | |
Not all types are always used by an asynchronous task. To mark a type as unused, simply use the type Void: | |
private class MyTask extends AsyncTask<Void, Void, Void> { ... } | |
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
<link rel="import" href="../ace-element/ace-element.html"> | |
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> |
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
using System; | |
using System.Management; | |
using System.Security.Cryptography; | |
using System.Security; | |
using System.Collections; | |
using System.Text; | |
namespace Security | |
{ | |
/// <summary> | |
/// Generates a 16 byte Unique Identification code of a computer |
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
//javascript private variable | |
var counterCreater = function() { | |
// constructor | |
function Counter () { | |
var count = 0 ; // private | |
this.inc = function () { | |
count++; | |
console.log("inc:" + count); | |
} | |
this.get = function(){ |
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
//clone | |
var clone = function (old) { | |
var my = {}, key ; | |
for (key in old){ | |
my[key] = old[key]; | |
} | |
return my ; | |
} |
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
public class MainActivity extends | |
private PopupWindow popWindow; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
} |
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 random | |
import string | |
import urllib.request | |
import time | |
class UrlGen : | |
def __init__(self, max = 1000, prefix = "" , charLen = 6): | |
self.max = max | |
self.current = 0 |
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
{ | |
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjeWNtb3RvIiwiaWF0IjoxNDk2NzY2OTM5LCJleHAiOjE1MjgzMDI5MzUsImF1ZCI6IiIsInN1YiI6IiIsImp0aSI6ImZNYUpKd0h2VlBhVnN0SDdnUGU0In0.MQoVc45jLFxxnM8xeXUwc_bpMuNX6eidw2iJshlkXWY", | |
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjeWNtb3RvIiwiaWF0IjoxNDk2NzY2OTM5LCJleHAiOjE1MjgzMDI5MzUsImF1ZCI6IiIsInN1YiI6IiIsImp0aSI6ImZNYUpKd0h2VlBhVnN0SDdnUGU0In0.MQoVc45jLFxxnM8xeXUwc_bpMuNX6eidw2iJshlkXWY", | |
"issued_at": "2017-06-06T16:34:56.875816886Z" | |
} |
OlderNewer