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
export default function simplifyTokens(obj, mapper = token => token.value) { | |
const result = {}; | |
for (const key in obj) { | |
if (!obj[key] || typeof obj[key] !== 'object') { | |
continue; | |
} | |
if ('value' in obj[key]) { | |
result[key] = mapper(obj[key]); |
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
adb shell pm list packages | grep 'samsung' | |
pm disable-user com.samsung.android.bixby.service | |
pm disable-user com.samsung.android.bixby.agent | |
pm disable-user com.samsung.android.bixby.wakeup | |
pm disable-user com.samsung.android.visionintelligence | |
pm disable-user com.samsung.android.app.routines | |
pm uninstall --user 0 com.samsung.android.mdx | |
pm uninstall -k --user 0 com.samsung.android.bixby.es.globalaction | |
pm uninstall --user 0 com.microsoft.appmanager |
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
PATH="/Users/$(whoami)/.asdf/shims:/usr/local/bin:$PATH" |
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 PropTypes from 'prop-types'; | |
import React from 'react'; | |
import * as colors from '@powel/design-colors'; | |
const uuid = () => { | |
let id = ''; | |
let random; | |
let i; | |
for (i = 0; i < 32; i++) { |
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
pyftsubset "Inter-roman.otf" --unicodes-file=unicodes.txt --layout-features="ss01,ss02,ss03,cpsp,kern,calt" --flavor="woff2" --output-file="inter-roman-subset.woff2" | |
pyftsubset "Inter-italic.otf" --unicodes-file=unicodes.txt --layout-features="ss01,ss02,ss03,cpsp,kern,calt" --flavor="woff2" --output-file="inter-italic-subset.woff2" |
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
(function(window, document, powelUI, ARRAY) { | |
'use strict'; | |
var reFileTrim = /^.+\/|\.[^\.]+$/g; // eslint-disable-line | |
var defaultViewBox = [0, 0, 560, 560]; | |
var defaultElement = document.createElement('x'); | |
var xmlns = 'http://www.w3.org/2000/svg'; | |
function process(file) { | |
return new Promise(function(resolve) { |
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
<?php | |
function process ($collection, $data) { | |
$collectionsToWatch = ['events']; | |
if (!in_array($collection, $collectionsToWatch)) { | |
return; | |
} | |
$data = [ |
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
/** | |
* Get the type size for the given step | |
* @param {number} step | |
* @returns {number} | |
*/ | |
export function getTypeSize(step) { | |
if (step <= 1) { | |
return 12; | |
} |
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
<?php | |
define('PATH_IMAGE_CACHE', 'cache/'); | |
define('DIR_IMAGE_CACHE', DIR_IMAGE . PATH_IMAGE_CACHE); | |
define('DIR_IMAGE_FTP', DIR_IMAGE . 'ftp/'); | |
class Image | |
{ | |
function __construct(&$locator) | |
{ |
NewerOlder