Skip to content

Instantly share code, notes, and snippets.

View walalm's full-sized avatar
🎯
Focusing

Waldy Almonte walalm

🎯
Focusing
View GitHub Profile
@walalm
walalm / Card.js
Created January 23, 2020 21:08
Workaround for Galio Card handling the click interaction.
/* eslint-disable object-curly-newline */
import React from 'react';
import { Image, StyleSheet, TouchableOpacity } from 'react-native';
import PropTypes from 'prop-types';
import { Block, Icon, Text } from './';
import GalioTheme, { withGalio } from './theme';
function Card({
avatar,
@walalm
walalm / GroupUmbracoContent.cs
Last active December 8, 2017 22:23
Group Umbraco Content
var members = Umbraco.TypedContent(9999).Children("membersList")
.Where(x => x.IsVisible()).OrderBy("order");
int chunkSize = 3;
var memberGroups = members.Select((x, i) => new { Index = i, Value = x })
.GroupBy(x => x.Index / chunkSize)
.Select(x => x.Select(v => v.Value).ToList())
.ToList();
@walalm
walalm / gist:a09f486b4203288be8e8a0fb46c80ce7
Created July 22, 2016 13:36 — forked from spadgos/gist:4697069
Get your SoundCloud likes as a .pls file (Paste this in the console on soundcloud.com)
$.getJSON('e1/me/track_likes.json?limit=200').done(function (likes) {
var list = likes.map(function (like, i) {
i++;
var sound = like.track;
return [
'File' + i + '=' + sound.stream_url + "?client_id=" + require('config').get('client_id'),
'Title' + i + '=' + sound.title,
'Length' + i + '=' + Math.round(sound.duration / 1000)
].join('\n');
var decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
decryptedRow += '"Name","URL","Username","Password"';
for(i=0; i<model.length; i++){
@walalm
walalm / ExportChromePasswords.js
Last active June 30, 2016 13:52 — forked from beaverb1ll/ExportChromePasswords.js
ExportChromePasswords.js
var decryptedRow="";
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
decryptedRow += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"';
for(i=0; i<model.length; i++){
@walalm
walalm / HUDProviderDroid.cs
Created June 17, 2016 03:04 — forked from Vratislav/HUDProviderDroid.cs
HUD Bindings for Xamarin Forms projects
using System;
using Applifting;
using Android.Content;
using Xamarin.Forms.Labs.Services;
namespace Applifting.Droid
{
public interface IDroidContextProvider{
Context Context {get;}
}