Skip to content

Instantly share code, notes, and snippets.

View 3m1n3nc3's full-sized avatar
๐Ÿ˜œ
Not hearing word

Legacy 3m1n3nc3

๐Ÿ˜œ
Not hearing word
View GitHub Profile
@3m1n3nc3
3m1n3nc3 / BlobImage.vue
Created August 31, 2022 03:28 — forked from nebaughman/BlobImage.vue
Load image with ajax (axios) as blob data in Vue component
<template>
<img ref="image" :src="blobUrl" @load="loaded"/>
</template>
<script>
import axios from "axios"
/**
* Load an image url as a blob
*/
@duoeg
duoeg / font-awesome-icons.php
Created January 16, 2020 14:16
List of Font Awesome icons for PHP
/**
* Returns a list of icons for the desired type.
* Supported values: "all" (default) | "brands" | "light" | "regular" | "solid" | "duotone"
* At the time of writing this function, current version is 5.12.0.
*/
function font_awesome($type = "all") {
$fa = array();
$brands = array( "fa-500px","fa-accessible-icon","fa-accusoft","fa-acquisitions-incorporated","fa-adn","fa-adobe","fa-adversal","fa-affiliatetheme","fa-airbnb","fa-algolia","fa-alipay","fa-amazon","fa-amazon-pay","fa-amilia","fa-android","fa-angellist","fa-angrycreative","fa-angular","fa-app-store","fa-app-store-ios","fa-apper","fa-apple","fa-apple-pay","fa-artstation","fa-asymmetrik","fa-atlassian","fa-audible","fa-autoprefixer","fa-avianex","fa-aviato","fa-aws","fa-bandcamp","fa-battle-net","fa-behance","fa-behance-square","fa-bimobject","fa-bitbucket","fa-bitcoin","fa-bity","fa-black-tie","fa-blackberry","fa-blogger","fa-blogger-b","fa-bluetooth","fa-bluetooth-b","fa-bootstrap","fa-btc","fa-buffer","fa-buromobelexperte","fa-buy-n-la
@nebaughman
nebaughman / BlobImage.vue
Created November 9, 2019 11:09
Load image with ajax (axios) as blob data in Vue component
<template>
<img ref="image" :src="blobUrl" @load="loaded"/>
</template>
<script>
import axios from "axios"
/**
* Load an image url as a blob
*/
@dalezak
dalezak / README.md
Last active September 11, 2023 09:51
Ionic Capacitor Resources Generator
  1. Run npm install cordova-res --save-dev
  2. Create 1024x1024px icon at resources/icon.png
  3. Create 2732x2732px splash at resources/splash.png
  4. Add "resources": "cordova-res ios && cordova-res android && node scripts/resources.js" to scripts in package.json
  5. Copy resources.js file to scripts/resources.js
  6. Run sudo chmod -R 777 scripts/resources.js
  7. Run npm run resources
@AaaRUnnN
AaaRUnnN / balance.php
Last active January 7, 2024 08:47
PHP Check If Parentheses, Brackets and Braces Are Balanced
<?php
/* PHP Check If Parentheses, Brackets and Braces Are Balanced
*/
function hasMatchedParenthesis($string) {
$string = str_split($string);
$stack = array();
function humanize(num){
var ones = ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine',
'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen',
'seventeen', 'eighteen', 'nineteen'];
var tens = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty',
'ninety'];
var numString = num.toString();
if (num < 0) throw new Error('Negative numbers are not supported.');