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
| /* | |
| * Copyright (C) 2007 The Guava Authors | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| /** | |
| * A module for dependencies which require a {@link android.content.Context} or | |
| * {@link android.app.Application} to create. | |
| */ | |
| @Module( | |
| library = true | |
| ) | |
| public class ContextModule { | |
| private Context appContext; |
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.centralway.numbrs.numbrsapp.views; | |
| import android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.support.design.widget.TextInputLayout; | |
| import android.support.v4.view.ViewCompat; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.EditText; |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| group = com.afzaln | |
| baseName = fab | |
| pkgName = FloatingActionButton | |
| description = FloationActionButton implementation forked from Clans, has automatic quick return on scroll | |
| siteUrl = https://github.com/afzalive/FloatingActionButton | |
| issuesUrl = https://github.com/afzalive/FloatingActionButton/issues | |
| gitUrl = https://github.com/afzalive/FloatingActionButton.git |
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.kiwiwearables.kiwilib; | |
| /* | |
| * Copyright (C) 2014 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
| * in compliance with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software distributed under the License |
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
| static String createAuthHeader(String username, String password) { | |
| return "Basic " + Base64.encodeToString((username + ":" + password).getBytes(), Base64.NO_WRAP); | |
| } |
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
| public class MyService extends Service implements OnSharedPreferenceChangeListener { | |
| private Looper mServiceLooper; | |
| private ServiceHandler mServiceHandler; | |
| @Override | |
| public void onCreate() { | |
| // Start up the thread running the service. Note that we create a | |
| // separate thread because the service normally runs in the process's |
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
| URL: http://beesandbombs.tumblr.com/page/6 | |
| void setup(){ | |
| size(500,500,P3D); | |
| smooth(8); | |
| } | |
| float f(int i, int j, float q){ | |
| return(q*(noise(.2*(i+400-.05*frameCount),.2*(j+90))-.5)); | |
| } |
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
| <?php | |
| // Other methods go here | |
| // Auth filter | |
| Route::filter('auth', function() | |
| { | |
| if (\League\OAuth2\Server\Util\Request::buildFromGlobals()->header('Authorization')) { | |
| // TODO DOES NOT WORK!!! | |
| return Route::filter('oauth', 'LucaDegasperi\OAuth2Server\Filters\OAuthFilter'); | |
| } else { |