This file contains hidden or 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
| #taken from https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively | |
| find . -name "node_modules" -exec rm -rf '{}' + |
This file contains hidden or 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 sanitizeQuery from 'helper/sanitizeQuery'; | |
| import serialize from 'helper/serialize'; | |
| const getSuccessActionType = KEY => | |
| type => [ KEY, type.toUpperCase(), 'SUCCESS' ].join('_'); | |
| const initialCollectionState = { | |
| items: {}, | |
| list: {}, | |
| infiniteList: {}, |
This file contains hidden or 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
| let persist = false; | |
| let ref = null; | |
| export function setStateContainer(componentInstance, isPersist) { | |
| ref = componentInstance; | |
| persist = isPersist; | |
| } | |
| export function isPersist() { | |
| return persist; |
This file contains hidden or 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 string = `copy your php here` | |
| console.log( | |
| string | |
| .replace(/class=/g, 'className=') | |
| .replace(/<\?php/g, '{') | |
| .replace(/\?>/g, '}') | |
| .replace(/echo/g, '') | |
| .replace(/{ endif; }/g, '}') |
This file contains hidden or 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
| VBoxManage modifyvm "OSX" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff | |
| VBoxManage setextradata "OSX" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" | |
| VBoxManage setextradata "OSX" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" | |
| VBoxManage setextradata "OSX" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" | |
| VBoxManage setextradata "OSX" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" | |
| VBoxManage setextradata "OSX" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 |
This file contains hidden or 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 importModule(moduleName) { | |
| return new Promise(resolve => { | |
| require.ensure([moduleName], () => { | |
| resolve(require(moduleName)); | |
| }); | |
| }); | |
| } |
This file contains hidden or 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
| module.exports = function LastFMFactory ($http, CONFIG) { | |
| 'ngInject' | |
| return { | |
| geo: { | |
| getTopArtists: function () { | |
| return $http.get(CONFIG.lastfm_url + '?format=json&method=geo.getTopArtists&country=indonesia&api_key=' + CONFIG.lastfm_key) | |
| }, | |
| getTopTracks: function () { | |
| } |
This file contains hidden or 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
| { | |
| "ace": { | |
| "@animatedScroll": true, | |
| "@antialiasedfonts": false, | |
| "@behavioursEnabled": true, | |
| "@cursorStyle": "ace", | |
| "@displayIndentGuides": true, | |
| "@fadeFoldWidgets": true, | |
| "@fontFamily": "Fira Code, monospace", | |
| "@fontSize": 16, |
This file contains hidden or 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
| document.head.innerHTML = '<style>body { margin: 0 auto; padding: 0; max-width: 30em; font-family: "Georgia"; line-height: 1.5; font-size: 1.3em} img { max-width: 100%; height: auto } svg { display: none; } </style>' |