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('MediasUtils',[]) | |
/** | |
* @description An angular directive that resize media to cover his parent size. | |
*/ | |
.directive('mediaCover',function (){ | |
var linkFn | |
,layoutFn | |
; | |
/** |
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.media') | |
directive('videoPlayer',function ($sce,$timeout,videoPlayerService){ | |
var linkFn | |
,controllerFn | |
,templateStr | |
; | |
templateStr = '<video ng-src="{{src}}"></video><section ng-transclude></section>' |
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
#!/bin/bash | |
verbose='false' | |
appName='' | |
moduleName='module' | |
while getopts 'a:v m:v' flag; | |
do | |
case ${flag} in | |
a) appName=${OPTARG}.;; | |
m) moduleName=${OPTARG};; |
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
var mybApp = angular.module('ss.Constant',[]) | |
.constant ('publicView', | |
[ | |
'/app/login' | |
] | |
) | |
.constant('DB_CONFIG', { | |
name: 'mybDB_08'/*+Math.floor(Math.random()*10)*/, | |
tables: [ | |
{ |
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
/*-------------------------------------- | |
* Original Gist by dimdimbe : https://gist.github.com/dimdimbe/37abbe5b95bbee800dac94b1e6bba144 | |
* After Further reading, it seem's that require break the singleton pattern. | |
* By the nature of the require cache system, the internal Instance of singleton is preserved... until Garbage collector is triggered. | |
* The most simple workaround is to "polute" the global scope to store the singleton internal instance, | |
* global variables are never disposed of by the GC. | |
/*-------------------------------------- | |
var SocketInstance = null | |
; |
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 {Vector3} from 'three'; | |
/** | |
* | |
* @param refFace {Face3D} | |
* @param faces {Array} | |
* @returns {Array} | |
*/ | |
export function findPlanarFaces(refFace, faces) { |
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
{ | |
"info": { | |
"_postman_id": "c2fbc424-ef1f-40db-ac96-00e8ecf26137", | |
"name": "contracts", | |
"description": "### EOSIO Contract API\n*Made with ♥️ by [pink.gg](https://pink.gg/)*\n#### Current Chain: wax-testnet\n#### Provided by: [pink.network](https://pink.network)", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "atomicassets/v1", |
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 { | |
generateCreateAccountAction, //Just a function that return a prebuild action | |
generateBuyRamBytesAction, //Just a function that return a prebuild action | |
} from '../utils/proton/actions/EosActions'; | |
import { ProtonRPC } from '../utils/proton/rpc/ProtonRPC'; | |
export class EosService { | |
async isAccountExist(newAccountName: string): Promise<boolean> { | |
const rpc = new ProtonRPC(); | |
const account = await rpc.getAccount(newAccountName); |
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 { Api, JsonRpc, RpcError, JsSignatureProvider } from '@proton/js'; | |
import { | |
GetAccountResult, | |
GetTableRowsResult, | |
} from '@proton/js/dist/rpc/types'; | |
export class ProtonRPC { | |
public rpc: JsonRpc; | |
public api: Api; |
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
const { JsonRpc }= require("@eoscafe/light-api"); | |
const rpc = new JsonRpc("proton"); | |
/** | |
* Fetch token holder counts | |
* @returns {any} | |
*/ | |
async getTokenHolders (){ | |
return rpc.get_tokenholder_count('accountName','TOKEN'); | |
OlderNewer