View FreeTheWakelockActivity.java
public class FreeTheWakelockActivity extends ActionBarActivity {
public static final String LOG_TAG = "FreeTheWakelockActivity";
TextView mWakeLockMsg;
ComponentName mServiceComponent;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_wakelock);
View COW
#include <iostream>
#include <cstring>
#include <cassert>
using namespace std;
class String
{
View FakeRedux.js
import {Container} from "flux/utils"
const inject = (actions, stores = [], storeToState) => Component => {
// Inject actions
Component.defaultProps = Object.assign({}, Component.defaultProps, {
actions: actions
})
// If Component is not a container
if (stores.length == 0) {
View functions.php
function main_breadcrumbs(){
echo '<ol class="breadcrumb">';
$list = '';
if (is_home() || is_front_page()) {
} else {
echo '<li><a href="'.home_url().'">'.esc_html__('Главная').'</a></li>';
}
$categories = get_the_category();
if(!empty($categories)){
View AccountAuthenticator.java
public class AccountAuthenticator extends AbstractAccountAuthenticator {
private final Context context;
@Inject @ClientId String clientId;
@Inject @ClientSecret String clientSecret;
@Inject ApiService apiService;
public AccountAuthenticator(Context context) {
super(context);
View PSPDFThreadSafeMutableDictionary.m
//
// PSPDFThreadSafeMutableDictionary.m
//
// Copyright (c) 2013 Peter Steinberger, PSPDFKit GmbH. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
View openpanzer-save.json
{"scenario":{"name":"Oran","maxTurns":12,"date":"1942-11-09T23:00:00.000Z","atmosferic":0,"latitude":0,"ground":0,"turnsPerDay":0,"dayTurn":0,"reinforcements":{"2":[{"row":21,"col":12,"unit":{"eqid":2861,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":5,"facing":8,"flag":7,"destroyed":false,"player":null,"transport":null,"carrier":0,"moveLeft":8,"ammo":5,"fuel":50,"hasAnimation":false,"hits":0,"experience":25,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"2","id":1},{"row":18,"col":19,"unit":{"eqid":644,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":5,"facing":11,"flag":7,"destroyed":false,"player":null,"transport":null,"carrier":0,"moveLeft":4,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":135,"entrenchment":0,"entrenchTicks":0,"le
View gist:06d11e77f8cda07845134e4cf1411adf
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Class ConceptBundle\Controller\Param\ParamValueTypeController does not exis
t in /var/www/currentweb/hosseini/main/src/ConceptBundle/Controller/ (which
is being imported from "/var/www/currentweb/hosseini/main/app/config/routi
ng.yml").
[ReflectionException]
Class ConceptBundle\Controller\Param\ParamValueTypeController does not exis
View ObjectMapper-Coding.swift
class Base: NSObject, NSCoding, StaticMappable {
var d: Int?
override init() {}
init(d: Int?) {
self.d = d
}
View safelink2
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(input){var output="";var chr1,chr2,chr3,enc1,enc2,enc3,enc4;var i=0;input=Base64._utf8_encode(input);while(i<input.length){chr1=input.charCodeAt(i++);chr2=input.charCodeAt(i++);chr3=input.charCodeAt(i++);enc1=chr1>>2;enc2=((chr1&3)<<4)|(chr2>>4);enc3=((chr2&15)<<2)|(chr3>>6);enc4=chr3&63;if(isNaN(chr2)){enc3=enc4=64;}else if(isNaN(chr3)){enc4=64;}
output=output+ this._keyStr.charAt(enc1)+ this._keyStr.charAt(enc2)+ this._keyStr.charAt(enc3)+ this._keyStr.charAt(enc4);}
return output;},decode:function(input){var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(i<input.length){enc1=this._keyStr.indexOf(input.charAt(i++));enc2=this._keyStr.indexOf(input.charAt(i++));enc3=this._keyStr.indexOf(input.charAt(i++));enc4=this._keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+