Skip to content

Instantly share code, notes, and snippets.

View cagb80's full-sized avatar
🏠
Working from home

Carlos Galeano cagb80

🏠
Working from home
View GitHub Profile
@cagb80
cagb80 / .htaccess
Last active April 24, 2023 14:48
Angular
# Change BIN with the SubFolder Address
RewriteEngine On
RewriteBase /BIN/
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /BIN/index.html [L]
# PREVENT CACHE
<FilesMatch "\.(js|css|json|xml|gz|html)$">
@cagb80
cagb80 / History|-1ae67691|entries.json
Last active April 22, 2023 05:15
VsCode-OnlyToSync
{"version":1,"resource":"file:///Volumes/OT%201TB/Work%20On/CCI/TGU/Website/Radios/angular/dist/index.html","entries":[{"id":"3LTL.html","source":"Workspace Edit","timestamp":1682052439000}]}
1. IDEA
2. Make a design
3. Create a Blank project and GitHUB it
ionic start [Project Name] [blank] [--project-id]
4. Add ios to the project at least
ionic capacitor add ios
5. Create icons and SplashScreen
npm install @capacitor/assets --save-dev
npx capacitor-assets generate [--ios --android --pwa]
npm install @capacitor/splash-screen
@cagb80
cagb80 / JSON WebService
Last active December 26, 2019 00:46
PHP Scripts
$uriTest = wsURI;
$params[KeyAccess] = $soapKeyAccess;
$query = http_build_query($params);
$contextData = array (
'method' => 'POST',
'header' => "Connection: close\r\n".
"Content-Length: ".strlen($query)."\r\n",
'content'=> $query);
$context = stream_context_create (array ( 'http' => $contextData ));
$response = json_decode(file_get_contents($uriTest, false, $context));