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
angular.module('app').service('Res', ['$rootScope', function ($rootScope) { | |
var scope = $rootScope | |
scope._scripts = scope._scripts || [] | |
scope._styles = scope._styles || [] | |
scope._rawScripts = scope._rawScripts || [] | |
scope._rawStyles = scope._rawStyles || [] | |
return { | |
style: function (inp) { | |
var hrefs = [] |
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
Service = (function() { | |
return { | |
body: function(){ | |
var s = {} | |
const controller_wrapper = function (f) { | |
return function () { | |
s = Array.prototype.shift.apply(arguments) | |
let r = f.apply(this, arguments) | |
return { | |
$scope: s, |
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
require('console'); | |
/** | |
* Created by rober_000 on 5/12/2016. | |
*/ | |
class Factorials{ | |
recursive(n){ | |
if (n === 1) { | |
return 1; | |
} | |
return n * this.recursive(n - 1); |
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 java.util.*; | |
import java.lang.*; | |
/** | |
* Created by RobertoTomás on 0027, 27, 4, 2016. | |
*/ | |
public class StringSorter { | |
public static void main(String[] args) { | |
//Arrays.stream(args).sorted(Comparator.naturalOrder()); |
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
package xyz.selfenrichment.robertotomas.popularmovies.lib; | |
// Created by RobertoTomás on 0004, 4, 4, 2016. | |
import android.content.Context; | |
import android.content.res.Configuration; | |
import android.content.res.Resources; | |
import android.util.DisplayMetrics; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ListAdapter; |
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 Feedly Tweaks | |
// @namespace http://your.homepage/ | |
// @version 1.0 | |
// @description tweaks for feedly | |
// @author You | |
// @include /https?:\/\/feedly.com/ | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// @grant none | |
// ==/UserScript== |
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.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
namespace Solution | |
{ | |
class Solution | |
{ | |
static void Main(String[] args) | |
{ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
package xyz.selfenrichment.robertotomas.popularmovies.SQLite; | |
// Created by RobertoTomás on 0002, 2, 4, 2016. | |
import android.content.ContentProvider; | |
import android.content.ContentUris; | |
import android.content.ContentValues; | |
import android.content.UriMatcher; | |
import android.database.Cursor; | |
import android.database.SQLException; | |
import android.database.sqlite.SQLiteConstraintException; |
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
@Override | |
public void onResume() { | |
super.onResume(); | |
PreferenceManager.getDefaultSharedPreferences(getContext()) | |
.registerOnSharedPreferenceChangeListener(this); | |
} | |
@Override public void onPause() { | |
super.onPause(); |