Skip to content

Instantly share code, notes, and snippets.

View reuf's full-sized avatar

Muhamed Halilovic reuf

View GitHub Profile
@reuf
reuf / suppliers.txt
Created August 30, 2019 22:19 — forked from antoniocampos/suppliers.txt
DropShipping List
Here are 30 different suppliers:
1 – Oberlo verified suppliers or US
2 – DX .com– A.K.A. Deal Extreme has been around for many years and has some amazing products that you could sell with great margins.
3 – WholesaleCentral .com– One of the most comprehensive list of free drop shippers which you could find in virtually any niche. They are also free.
4 – FragranceNet – This is a great source if you are looking to sell perfumes and fragrances.
5 – Vitabase– A great source to supply vitamins for skin, health and beauty drop shipped products.
6 – DressLink .com– A great source if you plan on selling dresses with amazing margins.
7 – Tiny Deal – Similar to DX but you could find unique products as well.
8 – Milanoo– A great supplier of wedding dresses, prom dresses.
9 – Dino Direct – Another awesome source for electronic products and gadgets.
@reuf
reuf / automata.py
Created November 29, 2016 18:28 — forked from Arachnid/automata.py
import bisect
class NFA(object):
EPSILON = object()
ANY = object()
def __init__(self, start_state):
self.transitions = {}
self.final_states = set()
self._start_state = start_state
@reuf
reuf / CommunityUserPhotoUpload.component
Created December 20, 2015 23:10 — forked from martyychang/CommunityUserPhotoUpload.component
Visualforce component demonstrating the use of ConnectApi to upload Chatter profile photo
<apex:component selfClosing="true"
controller="CommunityUserPhotoUploadController"
allowDML="true">
<apex:attribute name="subject" type="Id"
assignTo="{!userId}"
required="true"
description="The User ID for the community user"/>
<apex:form>
<apex:image value="{!largePhotoUrl}"/>
@reuf
reuf / DependentPicklistDemoController.cls
Created December 20, 2015 23:10 — forked from martyychang/DependentPicklistDemoController.cls
Demonstration of how to configure dependent picklists in Lightning on the Salesforce1 Platform, using features currently available in the Winter '15 beta
public class DependentPicklistDemoController {
@AuraEnabled
public static List<Contact> getContacts() {
return [
SELECT Id, Name, AccountId, Account.Name
FROM Contact
LIMIT 200
];
}
@reuf
reuf / S1Reporting.cls
Created December 20, 2015 23:10 — forked from martyychang/S1Reporting.cls
Demonstration of using Apex as a conduit for accessing the Salesforce1 Reporting REST API in Lightning
public class S1Reporting {
/*
* @see Salesforce1 Reporting REST API Developer Guide
*/
public class GetAnalyticsReportsResponseBody {
@AuraEnabled
public String name;
@reuf
reuf / OneLeadController.cls
Created December 20, 2015 23:10 — forked from martyychang/OneLeadController.cls
Why does passing an array of Lead objects to an Apex controller action cause an "internal salesforce.com error"?
public class OneLeadController {
@AuraEnabled
public static Id createLead(Lead newLead) {
insert newLead;
return newLead.Id;
}
@AuraEnabled
public static List<Id> createLeads(List<Lead> newLeads) {
@reuf
reuf / NullSObjectPropertyBugDemoController.cls
Created December 20, 2015 23:10 — forked from martyychang/NullSObjectPropertyBugDemoController.cls
It appears that instead of setting a null property to null when returning an sObject via Apex, the property simply isn't set at all and creates odd problems in the UI
public class NullSObjectPropertyBugDemoController {
@AuraEnabled
public static Id editLead(Lead newLead) {
Id newLeadId = null;
try {
upsert newLead;
newLeadId = newLead.Id;
}
@reuf
reuf / BatchableExperiment.cls
Created December 20, 2015 23:10 — forked from martyychang/BatchableExperiment.cls
Apex class that illustrates how a completely self-contained Batchable actually works
/*
* Database.Batchable that can be executed, assuming you have a custom object
* named Experiment__c that already exists in your org, with a custom
* Text field named Title__c
*/
global class BatchableExperiment
implements Database.Batchable<Task>, Iterable<Task>, Iterator<Task> {
/*
* The ID of the Experiment record created for this batch job
@reuf
reuf / PieChartRemoteDemo.page
Created December 20, 2015 23:09 — forked from martyychang/PieChartRemoteDemo.page
How to move JavaScript functions out of the global namespace when used with Visualforce chart components
<apex:page controller="PieChartRemoteController">
<script>
var noData = new Object(); // Simply a dummy placeholder for data attribute
var App = App || {}; // To hold functions
App.retrieveChartData = function(callback) {
var year = document.getElementById('theYear').value;
Visualforce.remoting.Manager.invokeAction(
'{!$RemoteAction.PieChartRemoteController.getRemotePieData}',
year,
@reuf
reuf / SetNewOwner.trigger
Created December 20, 2015 23:09 — forked from martyychang/SetNewOwner.trigger
Trigger to enable users to change the Case Owner through a proxy field via a publisher action in Salesforce1
trigger SetNewOwner on Case (before insert, before update) {
for (Case eachCase : Trigger.new) {
if (eachCase.NewOwner__c != null) {
eachCase.OwnerId = eachCase.NewOwner__c;
eachCase.NewOwner__c = null;
}
}
}