Skip to content

Instantly share code, notes, and snippets.

View ccfiel's full-sized avatar

Chris Ian Fiel ccfiel

View GitHub Profile
from sendgrid import SendGridAPIClient
sg = SendGridAPIClient('SG.xxxxxxFLuoyyyyyMEboqvXI')
response = sg.client.contactdb.lists.get()
print(response.status_code)
print(response.body)
print(response.headers)
@ccfiel
ccfiel / index.js
Created June 29, 2022 01:42
index.js
import Head from 'next/head';
import { ThemeProvider } from 'styled-components';
import { theme } from 'common/theme/appclassic';
import { ResetCSS } from 'common/assets/css/style';
import Sticky from 'react-stickynode';
import Navbar from 'containers/AppClassic/Navbar';
import Banner from 'containers/AppClassic/Banner';
import KeyFeatures from 'containers/AppClassic/KeyFeatures';
import AppSlider from 'containers/AppClassic/AppSlider';
import AppSlider2 from 'containers/AppClassic/AppSlider2';
import os
import sys
import shutil
command_help = 'rename.py <source folder> <distation folder>'
if len(sys.argv) < 3:
print("error: lacking paramaters.")
print(command_help)
exit(0)
@ccfiel
ccfiel / change_public.py
Created November 9, 2020 05:32
Change permission FreshchatSDK.h in iOS
import uuid
import os
#Tags
FILE_REF_SECTION = "PBXFileReference section"
PACKAGE_HEADER_REF_SECTION = "PBXNativeTarget section"
PACKAGE_HEADER_DEFINITION = "PBXHeadersBuildPhase section"
PUBLIC_HEADER_DEFINITION = "PBXBuildFile section */"
#Constants
default_platform(:ios)
platform :ios do
desc "Push a new release build to the App Store"
lane :release do
increment_build_number(xcodeproj: "Runner.xcodeproj")
get_certificates
get_provisioning_profile
build_app(workspace: "Runner.xcworkspace", scheme: "Runner")
upload_to_app_store
{"classes":{},"objectVersion":"46","archiveVersion":"1","objects":{"77831F370EFA70507DF0DDAD":{"isa":"PBXBuildFile","fileRef":"AFEEE4FF1C79F61D76046181"},"97C147071CF9000F007C117D":{"baseConfigurationReference":"7AFA3C8E1D35360C0083082E","isa":"XCBuildConfiguration","buildSettings":{"LD_RUNPATH_SEARCH_PATHS":"$(inherited) @executable_path\/Frameworks","ENABLE_BITCODE":"NO","DEVELOPMENT_TEAM":"2YZQZA92WF","LIBRARY_SEARCH_PATHS":["$(inherited)","$(PROJECT_DIR)\/Flutter"],"MARKETING_VERSION":"2.6","CLANG_ENABLE_MODULES":"YES","INFOPLIST_FILE":"Runner\/Info.plist","VERSIONING_SYSTEM":"apple-generic","SWIFT_OBJC_BRIDGING_HEADER":"Runner\/Runner-Bridging-Header.h","CODE_SIGN_ENTITLEMENTS":"Runner\/RunnerRelease.entitlements","ASSETCATALOG_COMPILER_APPICON_NAME":"AppIcon","SWIFT_VERSION":"5.0","PRODUCT_NAME":"$(TARGET_NAME)","CURRENT_PROJECT_VERSION":"30","FRAMEWORK_SEARCH_PATHS":["$(inherited)","$(PROJECT_DIR)\/Flutter"],"PRODUCT_BUNDLE_IDENTIFIER":"ph.bai.kahero-analytics"},"name":"Release"},"9CA78EAF78078746A0B98
Building ph.bai.kahero for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: 2YZQZA92WF
Running Xcode build...
Xcode build done. 14.9s
Failed to build iOS app
Error output from Xcode build:
** BUILD FAILED **
./src/app/pages/settings/DiningOptionFees.jsx
Line 167:8: React Hook useEffect has missing dependencies: 'name', 'type', and 'value'. Either include them or remove the dependency array. You can also do a functional update 'setName(n => ...)' if you only need 'name' in the 'setName' call react-hooks/exhaustive-deps
./src/app/pages/settings/components/DiningOptionModal.jsx
Line 18:8: React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Line 24:8: React Hook useEffect has a missing dependency: 'filteredOptionList.length'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Line 66:34: Unnecessarily computed property ["diningOptionFees"] found no-useless-computed-key
./src/app/pages/settings/OpenTickets.jsx
Line 194:8: React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remov
Started by GitLab push by Chris Ian Fiel
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/kahero - backoffice
The recommended git tool is: NONE
using credential gitlab
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://gitlab.com/bailabs/kahero-web-app.git # timeout=10
Fetching upstream changes from https://gitlab.com/bailabs/kahero-web-app.git
> git --version # timeout=10
@ccfiel
ccfiel / auth.dart
Created September 2, 2019 00:46
dart colyseus
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart' as http;
import 'package:localstorage/localstorage.dart';
enum Platform { ios, android }
const TOKEN_STORAGE = "colyseus-auth-token";